Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1021,19 +1021,19 @@ |
1022 | 1022 | $uts = 0; |
1023 | 1023 | } |
1024 | 1024 | |
1025 | | - if ($ts==0) |
1026 | | - $uts=time(); |
| 1025 | + if ($ts==0) { $uts=time(); } |
| 1026 | + |
1027 | 1027 | 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.'); |
1038 | 1038 | } |
1039 | 1039 | } |
1040 | 1040 | |