r104806 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104805‎ | r104806 | r104807 >
Date:00:24, 1 December 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Another artefact of the disable account merge

Remove disableaccount userright from core
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -115,7 +115,6 @@
116116 'deletedhistory',
117117 'deletedtext',
118118 'deleterevision',
119 - 'disableaccount',
120119 'edit',
121120 'editinterface',
122121 'editusercssjs', #deprecated
@@ -2143,7 +2142,7 @@
21442143 global $wgRealNameInInterface;
21452144 if ( is_null( $this->mDisplayName ) ) {
21462145 $displayName = null;
2147 -
 2146+
21482147 // Allow hooks to set a display name
21492148 wfRunHooks( 'UserDisplayName', array( $this, &$displayName ) );
21502149
@@ -2151,7 +2150,7 @@
21522151 // If $wgRealNameInInterface is true use the real name as the display name if it's set
21532152 $displayName = $this->getRealName();
21542153 }
2155 -
 2154+
21562155 if ( is_null( $displayName ) ) {
21572156 $displayName = $this->getName();
21582157 }
@@ -3192,8 +3191,8 @@
31933192
31943193 /**
31953194 * Alias for getEditToken.
3196 - * @deprecated since 1.19, use getEditToken instead.
3197 - *
 3195+ * @deprecated since 1.19, use getEditToken instead.
 3196+ *
31983197 * @param $salt String|Array of Strings Optional function-specific data for hashing
31993198 * @param $request WebRequest object to use or null to use $wgRequest
32003199 * @return String The new edit token
@@ -3201,7 +3200,7 @@
32023201 public function editToken( $salt = '', $request = null ) {
32033202 return $this->getEditToken( $salt, $request );
32043203 }
3205 -
 3204+
32063205 /**
32073206 * Initialize (if necessary) and return a session token value
32083207 * which can be used in edit forms to show that the user's

Comments

#Comment by Nikerabbit (talk | contribs)   08:50, 2 December 2011

Can you configure your editor not to do whitespace changes for every file you touch?

Status & tagging log