Florianschmidtwelzow has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/362874 )
Change subject: GoogleUser::hasConnectedGoogleAccount should be called statically ...................................................................... GoogleUser::hasConnectedGoogleAccount should be called statically The hook MergeAccountFromTo does not provide an instance of GoogleUser and the method hasConnectedGoogleAccount is anyway a static method and therefore should be called statically. Change-Id: I4e5c0e9fca1abb44c95a002f707bc940ea015137 --- M includes/GoogleLogin.hooks.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GoogleLogin refs/changes/74/362874/1 diff --git a/includes/GoogleLogin.hooks.php b/includes/GoogleLogin.hooks.php index 267107b..d6eb123 100644 --- a/includes/GoogleLogin.hooks.php +++ b/includes/GoogleLogin.hooks.php @@ -58,9 +58,9 @@ // the new user exists (e.g. is not Anonymous) !$newUser->isAnon() && // the new user doesn't has a google connection already - !$newUser->hasConnectedGoogleAccount() && + !GoogleUser::hasConnectedGoogleAccount( $newUser ) && // the old user has a google connection - $oldUser->hasConnectedGoogleAccount() + GoogleUser::hasConnectedGoogleAccount( $oldUser ) ) { // save the google id of the old account $googleIds = GoogleUser::getGoogleIdFromUser( $oldUser ); -- To view, visit https://gerrit.wikimedia.org/r/362874 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4e5c0e9fca1abb44c95a002f707bc940ea015137 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GoogleLogin Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits