From ae4026c182c0b168733ff64d17c60fec37af74b1 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 6 Jun 2009 10:55:04 +0000 Subject: [PATCH] changed wfMsgExt()'s warnings to use the new wfWarn() so that the caller function is also displayed --- includes/GlobalFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } } -- 2.20.1