diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /includes/ExternalUser.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'includes/ExternalUser.php')
-rw-r--r-- | includes/ExternalUser.php | 16 |
1 files changed, 8 insertions, 8 deletions
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; } - + } |