cvs: phpweb /include layout.inc

From: Date: Mon, 18 Sep 2006 04:15:03 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32685@lists.php.net to get a copy of this message
pollita Mon Sep 18 04:15:03 2006 UTC Modified files: /phpweb/include layout.inc Log: Fix regression introduced in rev 1.244. archive/YEAR.php should be an absolute path. http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.244&r2=1.245&diff_format=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.244 phpweb/include/layout.inc:1.245 --- phpweb/include/layout.inc:1.244 Sun Sep 17 20:02:27 2006 +++ phpweb/include/layout.inc Mon Sep 18 04:15:03 2006 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.244 2006/09/17 20:02:27 goba Exp $ */ +/* $Id: layout.inc,v 1.245 2006/09/18 04:15:03 pollita Exp $ */ // Set the static content root differently on php.net $_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ? @@ -559,7 +559,7 @@ <ul class="toc"> '; for ($i = 1998; $i < 2007; $i++) { - $pagename = "archive/$i.php"; + $pagename = "/archive/$i.php"; $classname = ($pagename == $_SERVER['BASE_PAGE'] ? ' class="active"' : ''); $SIDEBAR_DATA .= "<li{$classname}><a href=\"{$pagename}\">{$i}</a></li>\n"; }

« previous php.mirrors (#32685) next »