mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 08:14:09 +00:00
Replace deprecated ParserOptions::getUser with ::getUserIdentity
Bug: T292589 Change-Id: I381863a62340292e8bbc7840256f591a31afb42e
This commit is contained in:
parent
e45e7b2f64
commit
ae920ae5b8
|
@ -282,7 +282,7 @@ class Scribunto_LuaLanguageLibrary extends Scribunto_LuaLibraryBase {
|
|||
$parserOptions = $this->getParserOptions();
|
||||
if ( $parserOptions->getInterfaceMessage() ) {
|
||||
$genderCache = MediaWikiServices::getInstance()->getGenderCache();
|
||||
$gender = $genderCache->getGenderOf( $parserOptions->getUser(), __METHOD__ );
|
||||
$gender = $genderCache->getGenderOf( $parserOptions->getUserIdentity(), __METHOD__ );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue