From 295fa64bec2f2768d062f64874013769ecbdabb6 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sat, 30 Jun 2007 16:53:47 +0000 Subject: [PATCH] Expand the /get/xx-5-LATEST support to include pecl and debug packages --- error.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error.php b/error.php index e0b9a1554..1dd5aa918 100644 --- a/error.php +++ b/error.php @@ -129,10 +129,10 @@ if (preg_match("!^get/([^/]+)$!", $URI, $what)) { if (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) { $df = $dlinfo[1]; - if(strpos($df, "php-5-LATEST") !== false) { + if(strpos($df, "5-LATEST") !== false) { include_once $_SERVER['DOCUMENT_ROOT'] . "/include/version.inc"; $df = str_replace("5-LATEST", $PHP_5_VERSION, $df); - } elseif(strpos($df, "php-4-LATEST") !== false) { + } elseif(strpos($df, "4-LATEST") !== false) { include_once $_SERVER['DOCUMENT_ROOT'] . "/include/version.inc"; $df = str_replace("4-LATEST", $PHP_4_VERSION, $df); }