Revision: 51533 Author: ialex Date: 2009-06-06 10:55:04 +0000 (Sat, 06 Jun 2009)
Log Message: ----------- changed wfMsgExt()'s warnings to use the new wfWarn() so that the caller function is also displayed Modified Paths: -------------- trunk/phase3/includes/GlobalFunctions.php Modified: trunk/phase3/includes/GlobalFunctions.php =================================================================== --- trunk/phase3/includes/GlobalFunctions.php 2009-06-06 09:36:04 UTC (rev 51532) +++ trunk/phase3/includes/GlobalFunctions.php 2009-06-06 10:55:04 UTC (rev 51533) @@ -756,12 +756,12 @@ foreach( $options as $arrayKey => $option ) { if( !preg_match( '/^[0-9]+|language$/', $arrayKey ) ) { # An unknown index, neither numeric nor "language" - trigger_error( "wfMsgExt called with incorrect parameter key $arrayKey", E_USER_WARNING ); + wfWarn( "wfMsgExt called with incorrect parameter key $arrayKey", 1, E_USER_WARNING ); } elseif( preg_match( '/^[0-9]+$/', $arrayKey ) && !in_array( $option, array( 'parse', 'parseinline', 'escape', 'escapenoentities', 'replaceafter', 'parsemag', 'content' ) ) ) { # A numeric index with unknown value - trigger_error( "wfMsgExt called with incorrect parameter $option", E_USER_WARNING ); + wfWarn( "wfMsgExt called with incorrect parameter $option", 1, E_USER_WARNING ); } } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs