r90706 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90705‎ | r90706 | r90707 >
Date:09:54, 24 June 2011
Author:siebrand
Status:ok
Tags:
Comment:
Use temporary var for wfTimestampNow().
Modified paths:
  • /trunk/extensions/Translate/ffs/Gettext.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/ffs/Gettext.php
@@ -338,11 +338,12 @@
339339
340340 $specs = isset( $template['HEADERS'] ) ? $template['HEADERS'] : array();
341341
 342+ $timestamp = wfTimestampNow();
342343 $specs['Project-Id-Version'] = $this->group->getLabel();
343344 $specs['Report-Msgid-Bugs-To'] = $wgSitename;
344 - $specs['PO-Revision-Date'] = self::formatTime( wfTimestampNow() );
 345+ $specs['PO-Revision-Date'] = self::formatTime( $timestamp );
345346 if ( $this->offlineMode ) {
346 - $specs['POT-Creation-Date'] = self::formatTime( wfTimestampNow() );
 347+ $specs['POT-Creation-Date'] = self::formatTime( $timestamp );
347348 } elseif ( $this->group instanceof MessageGroupBase ) {
348349 $specs['X-POT-Import-Date'] = self::formatTime( wfTimestamp( TS_MW, $this->getPotTime() ) );
349350 }

Status & tagging log