r85050 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85049‎ | r85050 | r85051 >
Date:22:07, 30 March 2011
Author:kaldari
Status:ok
Tags:
Comment:
fix for editor survey
Modified paths:
  • /trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php (modified) (history)

Diff [purge]

Index: trunk/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() {

Follow-up revisions

RevisionCommit summaryAuthorDate
r85088mft: r85050awjrichards20:28, 31 March 2011

Status & tagging log