X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Fclasses%2FLanguageKu.php;h=1fdebc27649552be3efd06919dff57878ef464f8;hb=8c38f6b0d4b07b107d4f668025cdaeebb3b44860;hp=674e717a1fbc5e936447236cd7ba77e9beb9dda2;hpb=bd2a78a159ce6d9f7b27fd75d05570228b44c3cb;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/classes/LanguageKu.php b/languages/classes/LanguageKu.php index 674e717a1f..1fdebc2764 100644 --- a/languages/classes/LanguageKu.php +++ b/languages/classes/LanguageKu.php @@ -160,8 +160,8 @@ class KuConverter 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 ) { @@ -180,26 +180,6 @@ class KuConverter 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