From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/ExternalUser.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'includes/ExternalUser.php') diff --git a/includes/ExternalUser.php b/includes/ExternalUser.php index 9a01deb7..580b9896 100644 --- a/includes/ExternalUser.php +++ b/includes/ExternalUser.php @@ -128,7 +128,7 @@ abstract class ExternalUser { * @param $name string * @return bool Success? */ - protected abstract function initFromName( $name ); + abstract protected function initFromName( $name ); /** * Given an id, which was at some previous point in history returned by @@ -138,7 +138,7 @@ abstract class ExternalUser { * @param $id string * @return bool Success? */ - protected abstract function initFromId( $id ); + abstract protected function initFromId( $id ); /** * Try to magically initialize the user from cookies or similar information @@ -278,23 +278,23 @@ abstract class ExternalUser { * This is part of the core code and is not overridable by specific * plugins. It's in this class only for convenience. * - * @param $id int user_id + * @param int $id user_id */ - public final function linkToLocal( $id ) { + final public function linkToLocal( $id ) { $dbw = wfGetDB( DB_MASTER ); $dbw->replace( 'external_user', array( 'eu_local_id', 'eu_external_id' ), array( 'eu_local_id' => $id, - 'eu_external_id' => $this->getId() ), + 'eu_external_id' => $this->getId() ), __METHOD__ ); } - + /** * Check whether this external user id is already linked with * a local user. * @return Mixed User if the account is linked, Null otherwise. */ - public final function getLocalUser(){ + final public function getLocalUser() { $dbr = wfGetDB( DB_SLAVE ); $row = $dbr->selectRow( 'external_user', @@ -305,5 +305,5 @@ abstract class ExternalUser { ? User::newFromId( $row->eu_local_id ) : null; } - + } -- cgit v1.2.2