cvs: phpweb /include shared-manual.inc
| From: | Gabor Hojtsy | Date: | Tue, 27 May 2003 16:48:36 +0000 |
| Subject: | cvs: phpweb /include shared-manual.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-18144@lists.php.net to get a copy of this message | ||
goba Tue May 27 12:48:36 2003 EDT
Modified files:
/phpweb/include shared-manual.inc
Log:
Fix the manual page check on the dropdown to check with
an absolute path and not a relative (it can also be included
in a shortcut call)
Also comment it out the same time, as discussed with the
php-mirrors list, for performance reasons [other language
listings are also done without checks on docs.php for
example] This eliminates approx. 24 stat() calls per
manual page display
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.189 phpweb/include/shared-manual.inc:1.190
--- phpweb/include/shared-manual.inc:1.189 Fri May 23 16:45:39 2003
+++ phpweb/include/shared-manual.inc Tue May 27 12:48:36 2003
@@ -98,7 +98,9 @@
$links[] = array("$langcode[1]/print/$id", "printer friendly");
$links[] = array("$langcode[1]/printwn/$id", "printer friendly
[+notes]");
foreach ($LANGUAGES as $code => $name) {
- if (!preg_match("!/$code/!", $PHP_SELF) &&
file_exists("../$code/$id")) {
+ if (!preg_match("!/$code/!", $PHP_SELF)
+ // && file_exists($_SERVER['DOCUMENT_ROOT'] .
"/$code/$id")
+ ) {
$links[] = array("$code/$id", $name);
}
}