From 19a90fd8a7a9cc55756a3385e31f15f5f0b08415 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Sun, 31 May 2009 19:06:04 +0000 Subject: [PATCH] On second thought, use idFromName and edits() instead, load() loads a whole bunch of stuff we don't need --- includes/parser/CoreParserFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 9ba8554fe7..e6b613cee0 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -607,8 +607,8 @@ class CoreParserFunctions { return ''; } $u = User::newFromName( $user ); - $u->load(); - return self::formatRaw( $u->mEditCount, $raw ); + $id = User::idFromName( $u->mName ); + return self::formatRaw( User::edits( $id ), $raw ); } /** -- 2.20.1