dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a5d88
)
Followup r71751: change strict comparison to loose per CR, and add a comment explaini...
author
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 29 Dec 2010 22:28:26 +0000
(22:28 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 29 Dec 2010 22:28:26 +0000
(22:28 +0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
79438d9
..
e94ac72
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-1948,7
+1948,7
@@
function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
$da = array();
$strtime = '';
- if ( $ts ==
= 0 ) {
+ if ( $ts ==
0 ) { // This intentionally catches $ts === '' too, so DON'T change this to ===
$uts = time();
$strtime = "@$uts";
} elseif ( preg_match( '/^(\d{4})\-(\d\d)\-(\d\d) (\d\d):(\d\d):(\d\d)$/D', $ts, $da ) ) {