Don't sort news items reversely and beautify the horizontal line
authorJoey Schulze <joey@infodrom.org>
Tue, 16 Dec 2003 08:13:55 +0000 (08:13 +0000)
committerJoey Schulze <joey@infodrom.org>
Tue, 16 Dec 2003 08:13:55 +0000 (08:13 +0000)
src/index.wml

index 2d7f309..f420814 100644 (file)
@@ -32,7 +32,7 @@ genauso interessant, wie f&uuml;r den gewerblichen Einsatz.  <p>
 <:
 
     if (opendir (NEWS, "News/")) {
-       @news = reverse (sort (grep (/^news-.*\.txt$/,readdir (NEWS))));
+       @news = sort (grep (/^news-.*\.txt$/,readdir (NEWS)));
         closedir (NEWS);
     }
 
@@ -64,7 +64,7 @@ genauso interessant, wie f&uuml;r den gewerblichen Einsatz.  <p>
                    print;
                }
                close (NEWS);
-               print "<hr>" if ($#top > -1);
+               print "<div align=\"center\"><hr width=\"95%\"></center>" if ($#top > -1);
            }
        }
 :>