From: Niklas Laxström Date: Wed, 7 Sep 2011 15:39:01 +0000 (+0000) Subject: Load edit count separately. The logging system batch queries it for the user tool... X-Git-Tag: 1.31.0-rc.0~27831 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=c90c07a58761f56ce0ffbf300f890f6267c6e2fd;p=lhc%2Fweb%2Fwiklou.git Load edit count separately. The logging system batch queries it for the user tool links, which uses it for coloring. --- diff --git a/includes/User.php b/includes/User.php index 94044142b2..0bdfe12d59 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1076,6 +1076,12 @@ class User { $all = false; } + if ( isset( $row->user_editcount ) ) { + $this->mEditCount = $row->user_editcount; + } else { + $all = false; + } + if ( isset( $row->user_password ) ) { $this->mPassword = $row->user_password; $this->mNewpassword = $row->user_newpassword; @@ -1088,7 +1094,6 @@ class User { $this->mEmailToken = $row->user_email_token; $this->mEmailTokenExpires = wfTimestampOrNull( TS_MW, $row->user_email_token_expires ); $this->mRegistration = wfTimestampOrNull( TS_MW, $row->user_registration ); - $this->mEditCount = $row->user_editcount; } else { $all = false; }