r23130 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23129‎ | r23130 | r23131 >
Date:18:41, 20 June 2007
Author:aaron
Status:old
Tags:
Comment:
*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
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -2416,6 +2416,8 @@
24172417 $oldtz = getenv( 'TZ' );
24182418 putenv( 'TZ='.$wgLocaltimezone );
24192419 }
 2420+ $oe_level = error_reporting(E_ALL); #grrrr
 2421+
24202422 $localTimestamp = date( 'YmdHis', $ts );
24212423 $localMonth = date( 'm', $ts );
24222424 $localMonthName = date( 'n', $ts );
@@ -2428,6 +2430,8 @@
24292431 if ( isset( $wgLocaltimezone ) ) {
24302432 putenv( 'TZ='.$oldtz );
24312433 }
 2434+
 2435+ error_reporting($oe_level); #grrrr
24322436
24332437 switch ( $index ) {
24342438 case 'currentmonth':

Follow-up revisions

RevisionCommit summaryAuthorDate
r23203Merged revisions 23120-23202 via svnmerge from...david09:07, 22 June 2007

Status & tagging log