r85088 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85087‎ | r85088 | r85089 >
Date:20:28, 31 March 2011
Author:awjrichards
Status:ok
Tags:
Comment:
mft: r85050
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/UserDailyContribs/api/ApiUserDailyContribs.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/UserDailyContribs/api/ApiUserDailyContribs.php
@@ -15,15 +15,16 @@
1616
1717 $now = time();
1818 $result->addValue( $this->getModuleName() ,
19 - 'totalEdits',
20 - ($user->getEditCount() == NULL)?0:$user->getEditCount() );
21 - //returns YYYY-MM-DD-HH-MM-SS format
22 - $result->addValue( $this->getModuleName() ,
2319 'id', $user->getId() );
 20+ // returns YYYYMMDDHHMMSS format
2421 $result->addValue( $this->getModuleName() ,
2522 'registration', ($user->getRegistration() == NULL)?0:$user->getRegistration() );
2623 $result->addValue( $this->getModuleName() ,
2724 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24), $user ) );
 25+ $result->addValue( $this->getModuleName() ,
 26+ 'pastYearEdits', getUserEditCountSince( $now - (365 * 60 *60 *24), $user ) );
 27+ $result->addValue( $this->getModuleName() ,
 28+ 'totalEdits', ($user->getEditCount() == NULL)?0:$user->getEditCount() );
2829 }
2930
3031 public function getAllowedParams() {
Property changes on: branches/wmf/1.17wmf1/extensions/UserDailyContribs/api/ApiUserDailyContribs.php
___________________________________________________________________
Added: svn:mergeinfo
3132 Merged /branches/REL1_15/phase3/extensions/UserDailyContribs/api/ApiUserDailyContribs.php:r51646
3233 Merged /branches/wmf/1.16wmf4/extensions/UserDailyContribs/api/ApiUserDailyContribs.php:r67177,69199,76243,77266
3334 Merged /trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php:r85050
3435 Merged /branches/sqlite/extensions/UserDailyContribs/api/ApiUserDailyContribs.php:r58211-58321
3536 Merged /trunk/phase3/extensions/UserDailyContribs/api/ApiUserDailyContribs.php:r79828,79830,79848,79853,79950-79951,79954,79989,80006-80007,80013,80016,80080,80083,80124,80128,80238,81833,83212,83590
3637 Merged /branches/new-installer/phase3/extensions/UserDailyContribs/api/ApiUserDailyContribs.php:r43664-66004
3738 Merged /branches/wmf-deployment/extensions/UserDailyContribs/api/ApiUserDailyContribs.php:r60970

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85050fix for editor surveykaldari22:07, 30 March 2011

Status & tagging log