cvs: phpweb / docs.php
| From: | Wez Furlong | Date: | Thu, 15 May 2003 16:46:58 +0000 |
| Subject: | cvs: phpweb / docs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17701@lists.php.net to get a copy of this message | ||
wez Thu May 15 12:46:58 2003 EDT
Modified files:
/phpweb docs.php
Log:
Avoid a few stat()s per page.
Index: phpweb/docs.php
diff -u phpweb/docs.php:1.122 phpweb/docs.php:1.123
--- phpweb/docs.php:1.122 Sat Mar 1 11:14:35 2003
+++ phpweb/docs.php Thu May 15 12:46:58 2003
@@ -47,9 +47,10 @@
// Check for really available manual languages
$man_languages = array();
foreach ($LANGUAGES as $code => $langname) {
- if (file_exists("manual/$code/index.php")) {
+// Avoid this stat call here for the moment
+// if (file_exists("manual/$code/index.php")) {
$man_languages[] = $code;
- }
+// }
}
$lastlang = count($man_languages) - 1;