r51254 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51253‎ | r51254 | r51255 >
Date:19:06, 31 May 2009
Author:mrzman
Status:reverted
Tags:
Comment:
On second thought, use idFromName and edits() instead, load() loads a whole bunch of stuff we don't need
Modified paths:
  • /trunk/phase3/includes/parser/CoreParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/CoreParserFunctions.php
@@ -607,8 +607,8 @@
608608 return '';
609609 }
610610 $u = User::newFromName( $user );
611 - $u->load();
612 - return self::formatRaw( $u->mEditCount, $raw );
 611+ $id = User::idFromName( $u->mName );
 612+ return self::formatRaw( User::edits( $id ), $raw );
613613 }
614614
615615 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r51529Revert r51200, r51253, r51254, addition of {{NUMBEROFCONTRIBS:...}} parser fu...tstarling02:49, 6 June 2009

Status & tagging log