http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90706
Revision: 90706
Author: siebrand
Date: 2011-06-24 09:54:06 +0000 (Fri, 24 Jun 2011)
Log Message:
-----------
Use temporary var for wfTimestampNow().
Modified Paths:
--------------
trunk/extensions/Translate/ffs/Gettext.php
Modified: trunk/extensions/Translate/ffs/Gettext.php
===================================================================
--- trunk/extensions/Translate/ffs/Gettext.php 2011-06-24 09:53:12 UTC (rev
90705)
+++ trunk/extensions/Translate/ffs/Gettext.php 2011-06-24 09:54:06 UTC (rev
90706)
@@ -338,11 +338,12 @@
$specs = isset( $template['HEADERS'] ) ? $template['HEADERS'] :
array();
+ $timestamp = wfTimestampNow();
$specs['Project-Id-Version'] = $this->group->getLabel();
$specs['Report-Msgid-Bugs-To'] = $wgSitename;
- $specs['PO-Revision-Date'] = self::formatTime( wfTimestampNow()
);
+ $specs['PO-Revision-Date'] = self::formatTime( $timestamp );
if ( $this->offlineMode ) {
- $specs['POT-Creation-Date'] = self::formatTime(
wfTimestampNow() );
+ $specs['POT-Creation-Date'] = self::formatTime(
$timestamp );
} elseif ( $this->group instanceof MessageGroupBase ) {
$specs['X-POT-Import-Date'] = self::formatTime(
wfTimestamp( TS_MW, $this->getPotTime() ) );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs