From 4cc45d50adf153afa2d6a758a2b702143551bc92 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 24 Jun 2011 09:48:38 +0000 Subject: [PATCH] Follow-up r88278. Do not call $wfTimestampNow() twice, but use a temporary variable. --- includes/specials/SpecialLockdb.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); -- 2.20.1