Remove StubUserLang::findVariantLink
Was hard-deprecated together with Language counterpart. Was forgotten to be removed when the method was removed from Language class. No need for release notes, StubUserLang is an internal concept. Change-Id: Iec233869143ed273642f444c39387c053a33bc9d
This commit is contained in:
parent
31ce88620f
commit
b07ad81d60
1 changed files with 0 additions and 25 deletions
|
|
@ -18,8 +18,6 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
/**
|
||||
* Stub object for the user language. Assigned to the $wgLang global.
|
||||
*/
|
||||
|
|
@ -29,29 +27,6 @@ class StubUserLang extends StubObject {
|
|||
parent::__construct( 'wgLang' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Call Language::findVariantLink after unstubbing $wgLang.
|
||||
*
|
||||
* This method is implemented with a full signature rather than relying on
|
||||
* __call so that the pass-by-reference signature of the proxied method is
|
||||
* honored.
|
||||
* @deprecated since 1.35
|
||||
*
|
||||
* @param string &$link The name of the link
|
||||
* @param Title &$nt The title object of the link
|
||||
* @param bool $ignoreOtherCond To disable other conditions when
|
||||
* we need to transclude a template or update a category's link
|
||||
*/
|
||||
public function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
|
||||
global $wgLang;
|
||||
wfDeprecated( __METHOD__, '1.35' );
|
||||
$this->_unstub( 'findVariantLink', 3 );
|
||||
MediaWikiServices::getInstance()
|
||||
->getLanguageConverterFactory()
|
||||
->getLanguageConverter( $wgLang )
|
||||
->findVariantLink( $link, $nt, $ignoreOtherCond );
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Language
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue