* Special:Imagelist displays titles with " " instead of "_"
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 19 Jun 2005 15:23:01 +0000 (15:23 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sun, 19 Jun 2005 15:23:01 +0000 (15:23 +0000)
RELEASE-NOTES
includes/SpecialImagelist.php

index cdb9a9c..080133f 100644 (file)
@@ -298,6 +298,7 @@ Various bugfixes, small features, and a few experimental things:
 * (bug 2277) Added Friulian language file
 * (bug 2457) The "Special page" href now links to the current special page
   rather than to "".
+* Special:Imagelist displays titles with " " instead of "_"
 * Less gratuitous munging of content sample in delete summary
 * badaccess/badaccesstext to supercede sysop*, developer* messages
 * Changed $wgGroupPermissions to more cut-n-paste-friendly format
index 6e7cf99..1ac3384 100644 (file)
@@ -117,7 +117,7 @@ function wfSpecialImagelist() {
                }
 
                $ilink = "<a href=\"" . htmlspecialchars( Image::imageUrl( $name ) ) .
-                 "\">" . htmlspecialchars( $name ) . "</a>";
+                 "\">" . strtr(htmlspecialchars( $name ), '_', ' ') . "</a>";
 
                $nb = wfMsg( "nbytes", $wgLang->formatNum( $s->img_size ) );
                $l = "(" .