r87943 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87942‎ | r87943 | r87944 >
Date:02:20, 13 May 2011
Author:kaldari
Status:ok
Tags:
Comment:
removing hack for editor survey, adding comments
Modified paths:
  • /trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php
@@ -16,14 +16,14 @@
1717 $now = time();
1818 $result->addValue( $this->getModuleName() ,
1919 'id', $user->getId() );
20 - // returns YYYYMMDDHHMMSS format
 20+ // returns date of registration in YYYYMMDDHHMMSS format
2121 $result->addValue( $this->getModuleName() ,
2222 'registration', ($user->getRegistration() == NULL)?'0':$user->getRegistration() );
 23+ // returns number of edits since daysago param
2324 $result->addValue( $this->getModuleName() ,
2425 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24), $user ) );
 26+ // returns total number of edits
2527 $result->addValue( $this->getModuleName() ,
26 - 'pastYearEdits', getUserEditCountSince( $now - (365 * 60 *60 *24), $user ) );
27 - $result->addValue( $this->getModuleName() ,
2828 'totalEdits', ($user->getEditCount() == NULL)?0:$user->getEditCount() );
2929 }
3030

Status & tagging log