*Goddamn hack, modify error level temporarily while some dates are parsed so as not...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 20 Jun 2007 18:41:15 +0000 (18:41 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 20 Jun 2007 18:41:15 +0000 (18:41 +0000)
includes/Parser.php

index 2793645..bc73b57 100644 (file)
@@ -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':