cvs: phd /phpdotnet/phd/Package/PHP Web.php
| From: | Moacir de Oliveira Miranda Júnior | Date: | Mon, 06 Jul 2009 06:51:56 +0000 |
| Subject: | cvs: phd /phpdotnet/phd/Package/PHP Web.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4345@lists.php.net to get a copy of this message | ||
moacir Mon Jul 6 06:51:56 2009 UTC
Modified files:
/phd/phpdotnet/phd/Package/PHP Web.php
Log:
fixes
http://cvs.php.net/viewvc.cgi/phd/phpdotnet/phd/Package/PHP/Web.php?r1=1.1&r2=1.2&diff_format=u
Index: phd/phpdotnet/phd/Package/PHP/Web.php
diff -u phd/phpdotnet/phd/Package/PHP/Web.php:1.1 phd/phpdotnet/phd/Package/PHP/Web.php:1.2
--- phd/phpdotnet/phd/Package/PHP/Web.php:1.1 Sun Jul 5 06:37:04 2009
+++ phd/phpdotnet/phd/Package/PHP/Web.php Mon Jul 6 06:51:56 2009
@@ -78,8 +78,10 @@
v("Can't create output directory", E_USER_ERROR);
}
}
- if (!file_exists($this->outputdir . "toc") || is_file($this->outputdir
. "toc")) {
- mkdir($this->outputdir . "toc") or die("Can't create the toc
directory");
+ if ($this->getFormatName() == "PHP-Web") {
+ if (!file_exists($this->outputdir . "toc") ||
is_file($this->outputdir . "toc")) {
+ mkdir($this->outputdir . "toc") or die("Can't create the
toc directory");
+ }
}
break;
case Render::VERBOSE:
@@ -129,8 +131,18 @@
$incl = 'include_once dirname(__FILE__) ."/toc/' .$parent.
'.inc";';
$up = array(Format::getFilename($parent).$ext, Format::getShortDescription($parent));
- $prev = array(Format::getPrevious($id).$ext, Format::getShortDescription($id));
- $next = array(Format::getNext($id).$ext, Format::getShortDescription($id));
+ if ($prevId = Format::getPrevious($id)) {
+ $prev = array(
+ Format::getFilename($prevId).$ext,
+ Format::getShortDescription($prevId),
+ );
+ }
+ if ($nextId = Format::getNext($id)) {
+ $next = array(
+ Format::getFilename($nextId).$ext,
+ Format::getShortDescription($nextId),
+ );
+ }
}
$setup = array(