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:
253d534
)
*Goddamn hack, modify error level temporarily while some dates are parsed so as not...
author
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 20 Jun 2007 18:41:15 +0000
(18:41 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Wed, 20 Jun 2007 18:41:15 +0000
(18:41 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
2793645
..
bc73b57
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-2416,6
+2416,8
@@
class Parser
$oldtz = getenv( 'TZ' );
putenv( 'TZ='.$wgLocaltimezone );
}
+ $oe_level = error_reporting(E_ALL); #grrrr
+
$localTimestamp = date( 'YmdHis', $ts );
$localMonth = date( 'm', $ts );
$localMonthName = date( 'n', $ts );
@@
-2428,6
+2430,8
@@
class Parser
if ( isset( $wgLocaltimezone ) ) {
putenv( 'TZ='.$oldtz );
}
+
+ error_reporting($oe_level); #grrrr
switch ( $index ) {
case 'currentmonth':