r8117 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r8116‎ | r8117 | r8118 >
Date:14:09, 7 April 2005
Author:avar
Status:old
Tags:
Comment:
* Indenting and formatting.
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -1021,19 +1021,19 @@
10221022 $uts = 0;
10231023 }
10241024
1025 - if ($ts==0)
1026 - $uts=time();
 1025+ if ($ts==0) { $uts=time(); }
 1026+
10271027 switch($outputtype) {
1028 - case TS_UNIX:
1029 - return $uts;
1030 - case TS_MW:
1031 - return gmdate( 'YmdHis', $uts );
1032 - case TS_DB:
1033 - return gmdate( 'Y-m-d H:i:s', $uts );
1034 - case TS_RFC2822:
1035 - return gmdate( 'D, d M Y H:i:s', $uts ) . ' GMT';
1036 - default:
1037 - wfDebugDieBacktrace( 'wfTimestamp() called with illegal output type.');
 1028+ case TS_UNIX:
 1029+ return $uts;
 1030+ case TS_MW:
 1031+ return gmdate( 'YmdHis', $uts );
 1032+ case TS_DB:
 1033+ return gmdate( 'Y-m-d H:i:s', $uts );
 1034+ case TS_RFC2822:
 1035+ return gmdate( 'D, d M Y H:i:s', $uts ) . ' GMT';
 1036+ default:
 1037+ wfDebugDieBacktrace( 'wfTimestamp() called with illegal output type.');
10381038 }
10391039 }
10401040

Status & tagging log