You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use of ParserOptions::getUser was deprecated in MediaWiki 1.36.
[Called from HeaderFooter::hOutputPageParserOutput in /path/to/wiki/extensions/HeaderFooter/HeaderFooter.class.php at line 12]
/** * Current user * @deprecated since 1.36. Use ::getUserIdentity instead. * Hard deprecated since 1.37. * @return User */publicfunctiongetUser() {
wfDeprecated( __METHOD__, '1.36' );
return MediaWikiServices::getInstance()
->getUserFactory()
->newFromUserIdentity( $this->mUser );
}
/** * Get the identity of the user for whom the parse is made. * @since 1.36 * @return UserIdentity */publicfunctiongetUserIdentity(): UserIdentity {
return$this->mUser;
}
Just dropping an issue here since I noticed deprecated log spam after upgrading, not sure what the intended upgrade path for MW extensions is since they added that alternate method in in 1.36 which seems fairly "recent"
Simply replacing the call with getUserIdentity seems to work just fine from quick testing
The text was updated successfully, but these errors were encountered:
HeaderFooter/HeaderFooter.class.php
Line 12 in eee7d2c
Just dropping an issue here since I noticed deprecated log spam after upgrading, not sure what the intended upgrade path for MW extensions is since they added that alternate method in in 1.36 which seems fairly "recent"
Simply replacing the call with
getUserIdentity
seems to work just fine from quick testingThe text was updated successfully, but these errors were encountered: