jenkins-bot has submitted this change and it was merged.

Change subject: Replace deprecated Language::getLanguageName()
......................................................................


Replace deprecated Language::getLanguageName()

Change-Id: I44a1d03ddaa3ef583ac91b7c12d7b34152428157
---
M InterwikiMagic.php
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Hashar: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/InterwikiMagic.php b/InterwikiMagic.php
index e0934ea..e6bdd79 100644
--- a/InterwikiMagic.php
+++ b/InterwikiMagic.php
@@ -46,7 +46,9 @@
  */
 function wfShoutWikiInterwikiMagic( $prefix, &$iwData ) {
        global $wgContLang, $wgSharedDB;
-       if( !$wgContLang->getLanguageName( $prefix ) ) {
+
+       $inLanguage = $wgContLang->getCode();
+       if( !Language::fetchLanguageName( $prefix, $inLanguage ) ) {
                $dbr = wfGetDB( DB_SLAVE, array(), $wgSharedDB );
                $res = $dbr->select(
                        'interwiki',
@@ -62,4 +64,4 @@
                return false;
        }
        return true;
-}
\ No newline at end of file
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/275559
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I44a1d03ddaa3ef583ac91b7c12d7b34152428157
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/InterwikiMagic
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: Hashar <has...@free.fr>
Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to