From ae920ae5b8b4598d3d64463ce8c4bbb7359176da Mon Sep 17 00:00:00 2001 From: Petr Pchelko Date: Tue, 5 Oct 2021 14:47:40 -0700 Subject: [PATCH] Replace deprecated ParserOptions::getUser with ::getUserIdentity Bug: T292589 Change-Id: I381863a62340292e8bbc7840256f591a31afb42e --- includes/engines/LuaCommon/LanguageLibrary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/engines/LuaCommon/LanguageLibrary.php b/includes/engines/LuaCommon/LanguageLibrary.php index d0e49c13..c585fb5f 100644 --- a/includes/engines/LuaCommon/LanguageLibrary.php +++ b/includes/engines/LuaCommon/LanguageLibrary.php @@ -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__ ); } } }