1
0
mirror of https://github.com/php/web-php.git synced 2026-04-24 15:38:06 +02:00

Fix downloads by using the right variable.

Fixes bug #66142 (Impossible to download PHP from website).
This commit is contained in:
Adam Harvey
2013-11-21 14:01:15 -08:00
parent 7ec105c4f8
commit f85fbcbfc5
+1 -1
View File
@@ -32,7 +32,7 @@ function download_file($mirror, $file)
// Redirect to the particular file
if (!headers_sent()) {
status_header(302);
header('Location: ' . $mirror . 'distributions/' . $found);
header('Location: ' . $mirror . 'distributions/' . $file);
} else {
exit("Unable to serve you the requested file for download");
}