cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Tue, 27 May 2003 15:49:33 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-18136@lists.php.net to get a copy of this message | ||
goba Tue May 27 11:49:33 2003 EDT
Modified files:
/phpweb/error index.php
Log:
Fixing a bug spotted by Allowee [strangely this is not
needed on official mirror sites to make /manual redirect
to the default language]
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.121 phpweb/error/index.php:1.122
--- phpweb/error/index.php:1.121 Sun May 25 13:42:06 2003
+++ phpweb/error/index.php Tue May 27 11:49:33 2003
@@ -1,6 +1,6 @@
<?php
-// $Id: index.php,v 1.121 2003/05/25 17:42:06 rasmus Exp $
+// $Id: index.php,v 1.122 2003/05/27 15:49:33 goba Exp $
/*
@@ -39,8 +39,8 @@
// ============================================================================
// 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)) {
- mirror_redirect("/manual/$LANG/$array[1]");
+if (preg_match("!^manual(/[^/]*)$!", $URI, $array)) {
+ mirror_redirect("/manual/$LANG$array[1]");
} elseif (preg_match("!^manual/html/([^/]+)$!", $URI, $array)) {
$array[1] = preg_replace("!.html$!", ".php", $array[1]);
mirror_redirect("/manual/$LANG/print/$array[1]");