Fix wfImagePath: removed invalid urlencode()
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 1 Feb 2004 12:21:26 +0000 (12:21 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 1 Feb 2004 12:21:26 +0000 (12:21 +0000)
includes/GlobalFunctions.php

index dc8cfc5..88ec901 100644 (file)
@@ -109,9 +109,9 @@ function wfImagePath( $img )
        $name = $nt->getDBkey();
        $hash = md5( $name );
 
-       $url = "{$wgUploadDirectory}/" . $hash{0} . "/" .
+       $path = "{$wgUploadDirectory}/" . $hash{0} . "/" .
          substr( $hash, 0, 2 ) . "/{$name}";
-       return wfUrlencode( $url );
+       return $path;
 }
 
 function wfThumbUrl( $img )