From: Aaron Schulz Date: Wed, 20 Jun 2007 18:41:15 +0000 (+0000) Subject: *Goddamn hack, modify error level temporarily while some dates are parsed so as not... X-Git-Tag: 1.31.0-rc.0~52484 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=92ad0a60a6804357d734f1310796914fbdbeeb8c;p=lhc%2Fweb%2Fwiklou.git *Goddamn hack, modify error level temporarily while some dates are parsed so as not to make E_STRICT unusable due to local time complaint floodage --- diff --git a/includes/Parser.php b/includes/Parser.php index 2793645342..bc73b572e7 100644 --- 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':