From c90c07a58761f56ce0ffbf300f890f6267c6e2fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 7 Sep 2011 15:39:01 +0000 Subject: [PATCH] Load edit count separately. The logging system batch queries it for the user tool links, which uses it for coloring. --- includes/User.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.20.1