tom Sun Dec 22 04:45:57 2002 EDT
Modified files:
/phpdoc/scripts revcheck.php
Log:
next try to fix the dir-prob.
Index: phpdoc/scripts/revcheck.php
diff -u phpdoc/scripts/revcheck.php:1.33 phpdoc/scripts/revcheck.php:1.34
--- phpdoc/scripts/revcheck.php:1.33 Sat Dec 14 07:57:45 2002
+++ phpdoc/scripts/revcheck.php Sun Dec 22 04:45:57 2002
@@ -90,12 +90,13 @@
// Main directory of the PHP documentation (depends on the
// sapi used). We do need the trailing slash!
-$sapi_type = php_sapi_name();
-if ($sapi_type === "cli"){
- $DOCDIR = "./";
- }else {
- $DOCDIR = "../";
-}
+if ("cli" === php_sapi_name()) {
+ if (isset($PHPDOCDIR) && is_dir($PHPDOCDIR))
+ $DOCDIR = $PHPDOCDIR."/";
+ else
+ $DOCDIR = "./";
+} else
+ $DOCDIR = "../";
// =========================================================================
// Functions to get revision info and credits from a file
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php