X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageIu.php;h=db3a22cac2d34d4b5f76920e4d0590a3049018c8;hb=612753f1841a9ffdb6adbf3128c026064938a15f;hp=4c956f011ac6d88b7f4cf8327e5d3f760a61bea2;hpb=7bbc880626c92055f1ff22deb90d132f8f766160;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageIu.php b/languages/classes/LanguageIu.php index 4c956f011a..db3a22cac2 100644 --- a/languages/classes/LanguageIu.php +++ b/languages/classes/LanguageIu.php @@ -142,8 +142,8 @@ class IuConverter extends LanguageConverter { * names as they were * - do not try to find variants for usernames * - * @param string $link - * @param Title $nt + * @param string &$link + * @param Title &$nt * @param bool $ignoreOtherCond */ function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { @@ -162,26 +162,6 @@ class IuConverter 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 *