bjori Mon Aug 20 12:54:36 2007 UTC
Modified files:
/phd/themes/php phpweb.php
Log:
Fix warnings
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpweb.php?r1=1.9&r2=1.10&diff_format=u
Index: phd/themes/php/phpweb.php
diff -u phd/themes/php/phpweb.php:1.9 phd/themes/php/phpweb.php:1.10
--- phd/themes/php/phpweb.php:1.9 Sun Aug 19 13:19:48 2007
+++ phd/themes/php/phpweb.php Mon Aug 20 12:54:35 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpweb.php,v 1.9 2007/08/19 13:19:48 bjori Exp $ */
+/* $Id: phpweb.php,v 1.10 2007/08/20 12:54:35 bjori Exp $ */
class phpweb extends phpdotnet implements PhDTheme {
protected $streams = array();
@@ -41,7 +41,7 @@
$ext = '.' .$this->ext;
$parent = PhDHelper::getParent($id);
$filename = $this->ext . DIRECTORY_SEPARATOR . "toc" .
DIRECTORY_SEPARATOR . $parent . ".inc";
- $up = array();
+ $up = array(null, null);
$incl = '';
$next = $prev = array(null, null);
@@ -72,7 +72,7 @@
file_put_contents($filename, $content);
}
- $incl = 'include_once "./toc/' .$parent. '.inc";';
+ $incl = 'include_once dirname(__FILE__) ."/toc/' .$parent.
'.inc";';
$up = array($this->getFilename($parent).$ext,
PhDHelper::getDescription($parent, true));
$prev = $this->createPrev($id, $parent, $siblings);