bjori Sat Aug 25 11:10:22 2007 UTC
Modified files:
/phd/themes/php phpweb.php
Log:
Add "parents" links to the TOC
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpweb.php?r1=1.10&r2=1.11&diff_format=u
Index: phd/themes/php/phpweb.php
diff -u phd/themes/php/phpweb.php:1.10 phd/themes/php/phpweb.php:1.11
--- phd/themes/php/phpweb.php:1.10 Mon Aug 20 12:54:35 2007
+++ phd/themes/php/phpweb.php Sat Aug 25 11:10:21 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpweb.php,v 1.10 2007/08/20 12:54:35 bjori Exp $ */
+/* $Id: phpweb.php,v 1.11 2007/08/25 11:10:21 bjori Exp $ */
class phpweb extends phpdotnet implements PhDTheme {
protected $streams = array();
@@ -62,7 +62,7 @@
$parents = array();
$p = $parent;
while (($p = PhDHelper::getParent($p)) && $p != "ROOT") {
- $parents[] = array($p, PhDHelper::getDescription($p,
true));
+ $parents[] = array($p.$ext, PhDHelper::getDescription($p,
true));
}
$content = '<?php
@@ -93,9 +93,11 @@
return '<?php
include_once $_SERVER[\'DOCUMENT_ROOT\'] . \'/include/shared-manual.inc\';
$TOC = array();
+$PARENTS = array();
'.$incl.'
$setup = '.$var.';
$setup["toc"] = $TOC;
+$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();