Author: reinhard
Date: 2007-05-14 06:48:04 -0500 (Mon, 14 May 2007)
New Revision: 9578

Modified:
   trunk/www/web/shared/_listdir.php
Log:
Fix to file type handling.


Modified: trunk/www/web/shared/_listdir.php
===================================================================
--- trunk/www/web/shared/_listdir.php   2007-05-12 18:46:01 UTC (rev 9577)
+++ trunk/www/web/shared/_listdir.php   2007-05-14 11:48:04 UTC (rev 9578)
@@ -55,7 +55,7 @@
       if ( $notyet )
         {
            $notyet = false ;
-           echo "<h3>$descr (*.$ext format)</h3><ul>\n" ;
+           echo "<h3>$descr (*$ext format)</h3><ul>\n" ;
            $close="</ul>";
         }
       echo "<li><a href=\"$dir/$file\">" ;
@@ -65,9 +65,9 @@
 
 }
 
-handleFileType("tar.gz", "Source files", $dir, $sortby);
-handleFileType("zip", "Source files", $dir, $sortby);
-handleFileType("deb", "Debian GNU/Linux Packages", $dir, $sortby);
-handleFileType("rpm", "GNU/Linux RPM Packages", $dir, $sortby);
-handleFileType("dmg", "Mac OS X Disk Images", $dir, $sortby);
-handleFileType("exe", "Windows Installation Files", $dir, $sortby);
+handleFileType(".tar.gz", "Source files", $dir, $sortby);
+handleFileType(".zip", "Source files", $dir, $sortby);
+handleFileType(".deb", "Debian GNU/Linux Packages", $dir, $sortby);
+handleFileType(".rpm", "GNU/Linux RPM Packages", $dir, $sortby);
+handleFileType(".dmg", "Mac OS X Disk Images", $dir, $sortby);
+handleFileType(".exe", "Windows Installation Files", $dir, $sortby);



_______________________________________________
commit-gnue mailing list
commit-gnue@gnu.org
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to