mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-15 03:04:08 +00:00
Make LoginNotifyHooks::onUserSaveOptions static
call_user_func_array() expects parameter 1 to be a valid callback, non-static method LoginNotifyHooks::onUserSaveOptions() should not be called statically Change-Id: If1242ff69c65fc4ae48fba990a14b02723867dbd
This commit is contained in:
parent
0424755035
commit
57bc309d83
|
@ -207,7 +207,7 @@ class LoginNotifyHooks {
|
|||
* @param &$options array
|
||||
* @return bool
|
||||
*/
|
||||
public function onUserSaveOptions( User $user, array &$options ) {
|
||||
public static function onUserSaveOptions( User $user, array &$options ) {
|
||||
$optionsToCheck = self::getOverridenOptions();
|
||||
$defaultOpts = User::getDefaultOptions();
|
||||
if ( !self::isUserOptionOverriden( $user ) ) {
|
||||
|
|
Loading…
Reference in a new issue