From: Alex Z Date: Sun, 31 May 2009 19:06:04 +0000 (+0000) Subject: On second thought, use idFromName and edits() instead, load() loads a whole bunch... X-Git-Tag: 1.31.0-rc.0~41579 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=19a90fd8a7a9cc55756a3385e31f15f5f0b08415;p=lhc%2Fweb%2Fwiklou.git On second thought, use idFromName and edits() instead, load() loads a whole bunch of stuff we don't need --- 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 ); } /**