Nikerabbit has uploaded a new change for review. https://gerrit.wikimedia.org/r/94330
Change subject: Avoid deprecation warnings for wikiGetlink ...................................................................... Avoid deprecation warnings for wikiGetlink Change-Id: Ibfe22389e56a4b5e90e6acd3335be6973e014ee6 --- M resources/js/ext.translate.mainpage.js 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TwnMainPage refs/changes/30/94330/1 diff --git a/resources/js/ext.translate.mainpage.js b/resources/js/ext.translate.mainpage.js index 2742789..65b3f56 100644 --- a/resources/js/ext.translate.mainpage.js +++ b/resources/js/ext.translate.mainpage.js @@ -6,6 +6,9 @@ ( function ( $, mw ) { 'use strict'; + // BC for MW <= 1.21 + var getUrl = mw.util.getUrl || mw.util.wikiGetlink; + /** * If the source language of all projects are same as target language, * provide a language selector to select target language. @@ -162,7 +165,7 @@ .msggroupselector( { language: language, onSelect: function ( messageGroup ) { - window.location.href = new mw.Uri( mw.util.wikiGetlink( 'Special:Translate' ) ) + window.location.href = new mw.Uri( getUrl( 'Special:Translate' ) ) .extend( { group: messageGroup.id } ); -- To view, visit https://gerrit.wikimedia.org/r/94330 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibfe22389e56a4b5e90e6acd3335be6973e014ee6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TwnMainPage Gerrit-Branch: master Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits