cvs commit: www manage_news.pl

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Thu Oct 16 14:26:29 PDT 2003


lizardo     03/10/16 15:26:29

  Modified:    .        manage_news.pl
  Log:
  manage_news.pl: Months on index.html files were not sorted. Fixed this.
  
  Revision  Changes    Path
  1.14      +2 -2      www/manage_news.pl
  
  Index: manage_news.pl
  ===================================================================
  RCS file: /home/cvsroot/www/manage_news.pl,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- manage_news.pl	16 Oct 2003 21:01:53 -0000	1.13
  +++ manage_news.pl	16 Oct 2003 21:26:28 -0000	1.14
  @@ -17,7 +17,7 @@
   # along with this program; if not, write to the Free Software
   # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
   
  -# $Id: manage_news.pl,v 1.13 2003/10/16 21:01:53 lizardo Exp $
  +# $Id: manage_news.pl,v 1.14 2003/10/16 21:26:28 lizardo Exp $
   
   use warnings;
   use strict;
  @@ -112,7 +112,7 @@
               $buffer = "";
           }
           print INDEX "<h3>$year</h3>\n<ul>\n";
  -        foreach my $month (keys %{$dates->{$year}}) {
  +        foreach my $month (sort(keys %{$dates->{$year}})) {
               print INDEX "\t<li><a href=\"$month.html\">" . strftime('%B',0,0,0,1,$month - 1,$year - 1900) .
               "</a></li>\n";
           }
  
  
  



More information about the website mailing list