From now on old dates will be provided via PHP
authorJoey Schulze <joey@infodrom.org>
Sun, 15 Jun 2008 09:31:44 +0000 (09:31 +0000)
committerJoey Schulze <joey@infodrom.org>
Sun, 15 Jun 2008 09:31:44 +0000 (09:31 +0000)
src/Termine/years.inc

index 5f36241..3a2f231 100644 (file)
@@ -30,7 +30,8 @@
   my @y;
   my $max = (localtime(time - 30*24*60*60))[5]+1900;
   foreach my $year (2000..$max) {
-    push (@y, sprintf ("<a href=\"%s.html\">%s</a>", $year, $year))
+    push (@y, sprintf ("<a href=\"%s.%s\">%s</a>",
+    $year, $year >= 2008?"php":"html", $year))
       if ($year ne "<get-var WML_SRC_BASENAME>");
   }    
   printf "<p>Vergangene Termine in %s</p>\n", join (", ", @y);