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:
Umherirrender 2017-02-05 11:55:55 +01:00
parent 0424755035
commit 57bc309d83

View file

@ -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 ) ) {