From f3cd6178f128b4e73531df626f031a933aeec672 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 7 Apr 2005 14:09:43 +0000 Subject: [PATCH] * Indenting and formatting. --- includes/GlobalFunctions.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4fa86c57f1..2dcaf05172 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1021,19 +1021,19 @@ function wfTimestamp($outputtype=TS_UNIX,$ts=0) { $uts = 0; } - if ($ts==0) - $uts=time(); + if ($ts==0) { $uts=time(); } + switch($outputtype) { - case TS_UNIX: - return $uts; - case TS_MW: - return gmdate( 'YmdHis', $uts ); - case TS_DB: - return gmdate( 'Y-m-d H:i:s', $uts ); - case TS_RFC2822: - return gmdate( 'D, d M Y H:i:s', $uts ) . ' GMT'; - default: - wfDebugDieBacktrace( 'wfTimestamp() called with illegal output type.'); + case TS_UNIX: + return $uts; + case TS_MW: + return gmdate( 'YmdHis', $uts ); + case TS_DB: + return gmdate( 'Y-m-d H:i:s', $uts ); + case TS_RFC2822: + return gmdate( 'D, d M Y H:i:s', $uts ) . ' GMT'; + default: + wfDebugDieBacktrace( 'wfTimestamp() called with illegal output type.'); } } -- 2.20.1