r86521 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86520‎ | r86521 | r86522 >
Date:18:39, 20 April 2011
Author:nimishg
Status:ok
Tags:
Comment:
made registration return the string zero for consistency in parsing
Modified paths:
  • /trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php
@@ -18,7 +18,7 @@
1919 'id', $user->getId() );
2020 // returns YYYYMMDDHHMMSS format
2121 $result->addValue( $this->getModuleName() ,
22 - 'registration', ($user->getRegistration() == NULL)?0:$user->getRegistration() );
 22+ 'registration', ($user->getRegistration() == NULL)?'0':$user->getRegistration() );
2323 $result->addValue( $this->getModuleName() ,
2424 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24), $user ) );
2525 $result->addValue( $this->getModuleName() ,

Status & tagging log