From: Jens Frank Date: Sun, 1 Feb 2004 12:21:26 +0000 (+0000) Subject: Fix wfImagePath: removed invalid urlencode() X-Git-Tag: 1.3.0beta1~1042 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=b3464402c0d126b11a7a8ad60f0ba79d807abe5d;p=lhc%2Fweb%2Fwiklou.git Fix wfImagePath: removed invalid urlencode() --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index dc8cfc5797..88ec901d03 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 )