cvs: phpweb / source.php
| From: | Jacques Marneweck | Date: | Wed, 14 May 2003 00:09:53 +0000 |
| Subject: | cvs: phpweb / source.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17589@lists.php.net to get a copy of this message | ||
jacques Tue May 13 20:09:53 2003 EDT
Modified files:
/phpweb source.php
Log:
* Busy fixing all the errors that appears when E_NOTICE is set on php.net
as reported by James Cox in his e-mail with message id
<MMEPJPGPACDMPGEEKFMKIECLLCAA.james@imajes.info>
--jm
Index: phpweb/source.php
diff -u phpweb/source.php:1.14 phpweb/source.php:1.15
--- phpweb/source.php:1.14 Tue Jan 7 17:07:33 2003
+++ phpweb/source.php Tue May 13 20:09:53 2003
@@ -39,10 +39,10 @@
"/error" => 1
);
-$dir = dirname($url);
+$dir = $url ? dirname($url) : "";
// The separate manual language dirs are legal dirs
-if (preg_match("!^/manual/(en|pt_BR|cs|nl|fr|de|hu|it|ja|kr|es)$!", $dir) ||
$legal_dirs[$dir]) {
+if (preg_match("!^/manual/(en|pt_BR|cs|nl|fr|de|hu|it|ja|kr|es)$!", $dir) ||
isset($legal_dirs[$dir])) {
$legal_dir = TRUE;
} else { $legal_dir = FALSE; }