cvs: phpweb /include layout.inc

From: Date: Mon, 18 Sep 2006 22:14:07 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-32701@lists.php.net to get a copy of this message
pollita Mon Sep 18 22:14:07 2006 UTC Modified files: /phpweb/include layout.inc Log: Move forward slash into link generation to put class id back in place. Show's what I get for trying to be smart.... http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.245&r2=1.246&diff_format=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.245 phpweb/include/layout.inc:1.246 --- phpweb/include/layout.inc:1.245 Mon Sep 18 04:15:03 2006 +++ phpweb/include/layout.inc Mon Sep 18 22:14:07 2006 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.245 2006/09/18 04:15:03 pollita Exp $ */ +/* $Id: layout.inc,v 1.246 2006/09/18 22:14:07 pollita Exp $ */ // Set the static content root differently on php.net $_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ? @@ -559,9 +559,9 @@ <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"; + $SIDEBAR_DATA .= "<li{$classname}><a href=\"/{$pagename}\">{$i}</a></li>\n"; } $SIDEBAR_DATA .= '</ul>'; }

« previous php.mirrors (#32701) next »