From 92ad0a60a6804357d734f1310796914fbdbeeb8c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 20 Jun 2007 18:41:15 +0000 Subject: [PATCH] *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 --- includes/Parser.php | 4 ++++ 1 file changed, 4 insertions(+) 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': -- 2.20.1