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 @@
608
608
return '';
609
609
}
610
610
$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 );
613
613
}
614
614
615
615
/**
Follow-up revisions
Revision
Commit summary
Author
Date
r51529
Revert
r51200
,
r51253
,
r51254
, addition of {{NUMBEROFCONTRIBS:...}} parser fu...
tstarling
02:49, 6 June 2009
Status & tagging log
02:49, 6 June 2009
Tim Starling
(
talk
|
contribs
)
changed the
status
of r51254
[
removed:
new
added:
reverted]