r61455 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61454‎ | r61455 | r61456 >
Date:10:05, 24 January 2010
Author:catrope
Status:ok
Tags:
Comment:
Revert r61414 per CR comment: wfTimestampNow() doesn't take a TS_* parameter
Modified paths:
  • /trunk/phase3/includes/api/ApiQuerySiteinfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php
@@ -154,7 +154,7 @@
155155 $data['variantarticlepath'] = $GLOBALS['wgVariantArticlePath'];
156156 $data['server'] = $GLOBALS['wgServer'];
157157 $data['wikiid'] = wfWikiID();
158 - $data['time'] = wfTimestampNow( TS_ISO_8601 );
 158+ $data['time'] = wfTimestamp( TS_ISO_8601, time() );
159159
160160 return $this->getResult()->addValue( 'query', $property, $data );
161161 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61414Followup to r61412: don't use time(), we have our own function for thiscatrope15:05, 23 January 2010

Status & tagging log