cvs: phpweb / error.php
| From: | Gabor Hojtsy | Date: | Sun, 26 Feb 2006 19:29:56 +0000 |
| Subject: | cvs: phpweb / error.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-30691@lists.php.net to get a copy of this message | ||
goba Sun Feb 26 19:29:56 2006 UTC
Modified files:
/phpweb error.php
Log:
try to let this moved mirror-info file used for error handler setting too
http://cvs.php.net/viewcvs.cgi/phpweb/error.php?r1=1.42&r2=1.43&diff_format=u
Index: phpweb/error.php
diff -u phpweb/error.php:1.42 phpweb/error.php:1.43
--- phpweb/error.php:1.42 Tue Sep 20 19:31:17 2005
+++ phpweb/error.php Sun Feb 26 19:29:56 2006
@@ -1,6 +1,6 @@
<?php
-// $Id: error.php,v 1.42 2005/09/20 19:31:17 goba Exp $
+// $Id: error.php,v 1.43 2006/02/26 19:29:56 goba Exp $
/*
@@ -58,6 +58,10 @@
// BC: handle moving english manual down into its own directory (also supports
// default language manual accessibilty on mirror sites through /manual/filename)
if (preg_match("!^manual(/[^/]*)$!", $URI, $array)) {
+ // Special case for mirror checking
+ if ($array[1] == 'mirror-info') {
+ mirror_redirect("/manual/mirror-info.php");
+ }
mirror_redirect("/manual/$LANG$array[1]");
} elseif (preg_match("!^manual/html/([^/]+)$!", $URI, $array)) {
$array[1] = preg_replace("!.html$!", ".php", $array[1]);