From e3881e5f745dd2dcfd8e2f955184fc6a1ac38939 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Sat, 30 Oct 2004 09:34:39 +0000 Subject: [PATCH] -double encoding --- includes/Image.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; -- 2.20.1