X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageSr.php;h=bdf1ec414304594b840b37521e6424d794794021;hb=8de4d505a4ba0ae3dc87c3e81a678f6442c2b0e7;hp=d0c4e06f105ec9eec3fc274ad8408ac1c1b09371;hpb=bd2a78a159ce6d9f7b27fd75d05570228b44c3cb;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageSr.php b/languages/classes/LanguageSr.php index d0c4e06f10..bdf1ec4143 100644 --- a/languages/classes/LanguageSr.php +++ b/languages/classes/LanguageSr.php @@ -108,8 +108,8 @@ class SrConverter 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 ) { @@ -128,26 +128,6 @@ class SrConverter 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, specials: * - ommiting roman numbers