From ffbd299b049b45b05d3ad550057dee650c74050a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 1 Dec 2011 00:24:22 +0000 Subject: [PATCH] Another artefact of the disable account merge Remove disableaccount userright from core --- includes/User.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/User.php b/includes/User.php index f3a0c565a2..a62e967760 100644 --- a/includes/User.php +++ b/includes/User.php @@ -115,7 +115,6 @@ class User { 'deletedhistory', 'deletedtext', 'deleterevision', - 'disableaccount', 'edit', 'editinterface', 'editusercssjs', #deprecated @@ -2143,7 +2142,7 @@ class User { global $wgRealNameInInterface; if ( is_null( $this->mDisplayName ) ) { $displayName = null; - + // Allow hooks to set a display name wfRunHooks( 'UserDisplayName', array( $this, &$displayName ) ); @@ -2151,7 +2150,7 @@ class User { // If $wgRealNameInInterface is true use the real name as the display name if it's set $displayName = $this->getRealName(); } - + if ( is_null( $displayName ) ) { $displayName = $this->getName(); } @@ -3192,8 +3191,8 @@ class User { /** * Alias for getEditToken. - * @deprecated since 1.19, use getEditToken instead. - * + * @deprecated since 1.19, use getEditToken instead. + * * @param $salt String|Array of Strings Optional function-specific data for hashing * @param $request WebRequest object to use or null to use $wgRequest * @return String The new edit token @@ -3201,7 +3200,7 @@ class User { public function editToken( $salt = '', $request = null ) { return $this->getEditToken( $salt, $request ); } - + /** * Initialize (if necessary) and return a session token value * which can be used in edit forms to show that the user's -- 2.20.1