From: Alexandre Emsenhuber Date: Sat, 6 Jun 2009 10:55:04 +0000 (+0000) Subject: changed wfMsgExt()'s warnings to use the new wfWarn() so that the caller function... X-Git-Tag: 1.31.0-rc.0~41483 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=ae4026c182c0b168733ff64d17c60fec37af74b1;p=lhc%2Fweb%2Fwiklou.git changed wfMsgExt()'s warnings to use the new wfWarn() so that the caller function is also displayed --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index f1009ac657..3da139945b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -756,12 +756,12 @@ function wfMsgExt( $key, $options ) { 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 ); } }