X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageShi.php;h=a22730c901f163163125c6e0ad8819501d4534ac;hb=acf291598a5e03e032321f7d1208b1ebb6d86c3e;hp=68e047c569e85b7bb5ed0459c35700843c8f51b0;hpb=0ff2c62197fdaf79f82d8657afd70621725c9762;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageShi.php b/languages/classes/LanguageShi.php index 68e047c569..a22730c901 100644 --- a/languages/classes/LanguageShi.php +++ b/languages/classes/LanguageShi.php @@ -138,26 +138,6 @@ class ShiConverter extends LanguageConverter { } } - /** - * An ugly function wrapper for parsing Image titles - * (to prevent image name conversion) - * - * @param string $text - * @param bool $toVariant - * - * @return string - */ - function autoConvert( $text, $toVariant = false ) { - global $wgTitle; - if ( is_object( $wgTitle ) && $wgTitle->getNamespace() == NS_FILE ) { - $imagename = $wgTitle->getNsText(); - if ( preg_match( "/^$imagename:/", $text ) ) { - return $text; - } - } - return parent::autoConvert( $text, $toVariant ); - } - /** * It translates text into variant *