cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Fri, 03 Jan 2003 13:27:16 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14663@lists.php.net to get a copy of this message | ||
goba Fri Jan 3 08:27:16 2003 EDT
Modified files:
/phpweb/error index.php
Log:
Allow any case of pt_BR, and transform it to the right case if in need.
Preserve language setting when redirecting to search page...
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.91 phpweb/error/index.php:1.92
--- phpweb/error/index.php:1.91 Sat Dec 28 10:07:58 2002
+++ phpweb/error/index.php Fri Jan 3 08:27:15 2003
@@ -191,7 +191,10 @@
list($lang,$function) = explode('/',$uri,2);
$function = strtolower($function);
- if ($lang != 'pt_BR') { $lang = strtolower($lang); }
+ $lang = strtolower($lang);
+
+ // Proper case for Brazilian Portuguese
+ if ($lang == 'pt_br') { $lang = 'pt_BR'; }
// Transform function name, so it can be a shortcut
if (isset($uri_aliases[$function])) {
@@ -231,5 +234,5 @@
// ============================================================================
// If no match was found till this point, the last action is to start a
// search with the URI the user typed in
-header('Location: http://'.$SERVER_NAME.'/search.php?show=manual&pattern='.urlencode(substr($REQUEST_URI,1))
);
+header('Location: http://'.$SERVER_NAME.'/search.php?show=manual&lang='.urlencode($lang).'&pattern='.urlencode(substr($REQUEST_URI,1))
);
?>