Replace deprecated ParserOptions::getUser with ::getUserIdentity

Bug: T292589
Change-Id: I381863a62340292e8bbc7840256f591a31afb42e
This commit is contained in:
Petr Pchelko 2021-10-05 14:47:40 -07:00
parent e45e7b2f64
commit ae920ae5b8

View file

@ -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__ );
}
}
}