Follow-up r88278. Do not call $wfTimestampNow() twice, but use a temporary variable.
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Fri, 24 Jun 2011 09:48:38 +0000 (09:48 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Fri, 24 Jun 2011 09:48:38 +0000 (09:48 +0000)
includes/specials/SpecialLockdb.php

index 07d1e1b..897a9b6 100644 (file)
@@ -122,12 +122,13 @@ class SpecialLockdb extends SpecialPage {
                        return;
                }
                fwrite( $fp, $this->reason );
+               $timestamp = wfTimestampNow();
                fwrite( $fp, "\n<p>" . wfMsgExt(
                        'lockedbyandtime',
                        array( 'content', 'parsemag' ),
                        $wgUser->getName(),
-                       $wgContLang->date( wfTimestampNow() ),
-                       $wgContLang->time( wfTimestampNow() )
+                       $wgContLang->date( $timestamp ),
+                       $wgContLang->time( $timestamp )
                ) . "</p>\n" );
                fclose( $fp );