r84933 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84932‎ | r84933 | r84934 >
Date:22:25, 28 March 2011
Author:nimishg
Status:ok
Tags:
Comment:
mft: r84932
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
@@ -21,9 +21,9 @@
2222 $result->addValue( $this->getModuleName() ,
2323 'id', $user->getId() );
2424 $result->addValue( $this->getModuleName() ,
25 - 'registration', $user->getRegistration() );
 25+ 'registration', ($user->getRegistration() == NULL)?0:$user->getRegistration() );
2626 $result->addValue( $this->getModuleName() ,
27 - 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24) ));
 27+ 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24) ), $user );
2828 }
2929
3030 public function getAllowedParams() {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84932handles null registrationnimishg22:15, 28 March 2011

Status & tagging log