From: Erik Moeller Date: Sat, 30 Oct 2004 09:34:39 +0000 (+0000) Subject: -double encoding X-Git-Tag: 1.5.0alpha1~1419 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=e3881e5f745dd2dcfd8e2f955184fc6a1ac38939;p=lhc%2Fweb%2Fwiklou.git -double encoding --- diff --git a/includes/Image.php b/includes/Image.php index 9239628682..5ea525d394 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -64,9 +64,9 @@ class Image # in case we're running a capitallinks=false wiki $sharedname=$wgLang->ucfirst($name); $sharedtitle=$wgLang->ucfirst($this->title->getDBkey()); - if($wgUseLatin1 && !$wgSharedLatin1) { + if($wgUseLatin1 && !$wgSharedLatin1) { $sharedname=utf8_encode($sharedname); - $sharedtitle=utf8_encode($sharedtitle); + $sharedtitle=utf8_encode($sharedtitle); } if($wgHashedSharedUploadDirectory) { @@ -251,9 +251,6 @@ class Image $hash = $wgHashedSharedUploadDirectory; $base = ''; $path = $wgSharedUploadPath; - if($wgUseLatin1 && !$wgSharedLatin1) { - $name=utf8_encode($name); - } } else { $hash = $wgHashedUploadDirectory; $base = $wgUploadBaseUrl;