r96442 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96441‎ | r96442 | r96443 >
Date:15:39, 7 September 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Load edit count separately. The logging system batch queries it for the user tool links, which uses it for coloring.
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -1076,6 +1076,12 @@
10771077 $all = false;
10781078 }
10791079
 1080+ if ( isset( $row->user_editcount ) ) {
 1081+ $this->mEditCount = $row->user_editcount;
 1082+ } else {
 1083+ $all = false;
 1084+ }
 1085+
10801086 if ( isset( $row->user_password ) ) {
10811087 $this->mPassword = $row->user_password;
10821088 $this->mNewpassword = $row->user_newpassword;
@@ -1088,7 +1094,6 @@
10891095 $this->mEmailToken = $row->user_email_token;
10901096 $this->mEmailTokenExpires = wfTimestampOrNull( TS_MW, $row->user_email_token_expires );
10911097 $this->mRegistration = wfTimestampOrNull( TS_MW, $row->user_registration );
1092 - $this->mEditCount = $row->user_editcount;
10931098 } else {
10941099 $all = false;
10951100 }

Status & tagging log