cvs: phpdoc /scripts revcheck.php

From: Date: Sun, 22 Dec 2002 09:45:57 +0000
Subject: cvs: phpdoc /scripts revcheck.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350366@lists.php.net to get a copy of this message
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

« previous php.doc (#969350366) next »