Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php |
— | — | @@ -85,7 +85,8 @@ |
86 | 86 | $row['json'] = $g->getJSON(); |
87 | 87 | } |
88 | 88 | 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 ) ); |
90 | 91 | } |
91 | 92 | if ( isset( $this->props['definitiontimestamp'] ) ) { |
92 | 93 | $row['definitiontimestamp'] = wfTimestamp( TS_ISO_8601, $g->getTimestamp() ); |