com web/php: Ordered news archive so that the most recent years are first.: include/layout.inc

From: Date: Mon, 11 Jun 2012 22:36:01 +0000
Subject: com web/php: Ordered news archive so that the most recent years are first.: include/layout.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13680@lists.php.net to get a copy of this message
Commit: d4ea71fd5f04bb7e1d0075a8ff90ad9d286a3595 Author: Levi Morrison <levim@php.net> Mon, 11 Jun 2012 16:36:01 -0600 Parents: b6894f931a5f0dc4a11abfcc1d3e2c2d3dedbfbf Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=d4ea71fd5f04bb7e1d0075a8ff90ad9d286a3595 Log: Ordered news archive so that the most recent years are first. Changed paths: M include/layout.inc Diff: diff --git a/include/layout.inc b/include/layout.inc index 8862ce9..c108bf5 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -712,7 +712,7 @@ function news_archive_sidebar() <ul class="toc"> '; - for ($i = 1998; $i <= date("Y"); $i++) { + for ($i = date("Y"); $i >= 1998; $i--) { $pagename = "archive/$i.php"; $classname = ($pagename == $_SERVER['BASE_PAGE'] ? ' class="active"' : ''); $SIDEBAR_DATA .= "<li{$classname}><a href=\"/{$pagename}\">{$i}</a></li>\n";

« previous php.webmaster (#13680) next »