From: aude Date: Fri, 21 Feb 2014 09:58:36 +0000 (+0100) Subject: Add visibility to User functions X-Git-Tag: 1.31.0-rc.0~16859 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=a1edef2ad0494e54411bd66102b8219fb8244d08;p=lhc%2Fweb%2Fwiklou.git Add visibility to User functions Change-Id: Ib2bea5ba8132e79345b46ec3e6db7576af07a007 --- diff --git a/includes/User.php b/includes/User.php index d863a06bdc..b2a25f97b6 100644 --- a/includes/User.php +++ b/includes/User.php @@ -254,14 +254,14 @@ class User { * @see newFromSession() * @see newFromRow() */ - function __construct() { + public function __construct() { $this->clearInstanceCache( 'defaults' ); } /** * @return string */ - function __toString() { + public function __toString() { return $this->getName(); } @@ -1625,7 +1625,7 @@ class User { * @param bool $bFromSlave whether to check the slave database instead of the master * @return bool */ - function isBlockedFrom( $title, $bFromSlave = false ) { + public function isBlockedFrom( $title, $bFromSlave = false ) { global $wgBlockAllowsUTEdit; wfProfileIn( __METHOD__ ); @@ -3557,7 +3557,7 @@ class User { * Get whether the user is allowed to create an account. * @return bool */ - function isAllowedToCreateAccount() { + public function isAllowedToCreateAccount() { return $this->isAllowed( 'createaccount' ) && !$this->isBlockedFromCreateAccount(); } @@ -3885,7 +3885,7 @@ class User { * @note Call saveSettings() after calling this function to commit the change. * @return bool Returns true */ - function invalidateEmail() { + public function invalidateEmail() { $this->load(); $this->mEmailToken = null; $this->mEmailTokenExpires = null; @@ -3898,7 +3898,7 @@ class User { * Set the e-mail authentication timestamp. * @param string $timestamp TS_MW timestamp */ - function setEmailAuthenticationTimestamp( $timestamp ) { + public function setEmailAuthenticationTimestamp( $timestamp ) { $this->load(); $this->mEmailAuthenticated = $timestamp; wfRunHooks( 'UserSetEmailAuthenticationTimestamp', array( $this, &$this->mEmailAuthenticated ) );