r95978 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95977‎ | r95978 | r95979 >
Date:13:08, 1 September 2011
Author:catrope
Status:ok
Tags:
Comment:
RL2: Fix error in r95965 caused by omission of $context parameter
Modified paths:
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
@@ -85,7 +85,8 @@
8686 $row['json'] = $g->getJSON();
8787 }
8888 if ( isset( $this->props['timestamp'] ) ) {
89 - $row['timestamp'] = wfTimestamp( TS_ISO_8601, $g->getModule()->getModifiedTime() );
 89+ $context = ResourceLoaderContext::newDummyContext();
 90+ $row['timestamp'] = wfTimestamp( TS_ISO_8601, $g->getModule()->getModifiedTime( $context ) );
9091 }
9192 if ( isset( $this->props['definitiontimestamp'] ) ) {
9293 $row['definitiontimestamp'] = wfTimestamp( TS_ISO_8601, $g->getTimestamp() );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95965RL2: Followup r95964: rename timestamp to definitiontimestamp, and add the ti...catrope11:53, 1 September 2011

Status & tagging log