From: Siebrand Mazeland Date: Fri, 24 Jun 2011 09:48:38 +0000 (+0000) Subject: Follow-up r88278. Do not call $wfTimestampNow() twice, but use a temporary variable. X-Git-Tag: 1.31.0-rc.0~29313 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=4cc45d50adf153afa2d6a758a2b702143551bc92;p=lhc%2Fweb%2Fwiklou.git Follow-up r88278. Do not call $wfTimestampNow() twice, but use a temporary variable. --- diff --git a/includes/specials/SpecialLockdb.php b/includes/specials/SpecialLockdb.php index 07d1e1b7ec..897a9b6e7a 100644 --- a/includes/specials/SpecialLockdb.php +++ b/includes/specials/SpecialLockdb.php @@ -122,12 +122,13 @@ class SpecialLockdb extends SpecialPage { return; } fwrite( $fp, $this->reason ); + $timestamp = wfTimestampNow(); fwrite( $fp, "\n

" . wfMsgExt( 'lockedbyandtime', array( 'content', 'parsemag' ), $wgUser->getName(), - $wgContLang->date( wfTimestampNow() ), - $wgContLang->time( wfTimestampNow() ) + $wgContLang->date( $timestamp ), + $wgContLang->time( $timestamp ) ) . "

\n" ); fclose( $fp );