summaryrefslogtreecommitdiff
path: root/includes/Message.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Message.php')
-rw-r--r--includes/Message.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/Message.php b/includes/Message.php
index 3c5d5d7d..10f9d3e1 100644
--- a/includes/Message.php
+++ b/includes/Message.php
@@ -515,7 +515,6 @@ class Message {
* Extracts the parameter type and preprocessed the value if needed.
* @param $param String|Array: Parameter as defined in this class.
* @return Tuple(type, value)
- * @throws MWException
*/
protected function extractParam( $param ) {
if ( is_array( $param ) && isset( $param['raw'] ) ) {
@@ -527,7 +526,11 @@ class Message {
} elseif ( !is_array( $param ) ) {
return array( 'before', $param );
} else {
- throw new MWException( "Invalid message parameter" );
+ trigger_error(
+ "Invalid message parameter: " . htmlspecialchars( serialize( $param ) ),
+ E_USER_WARNING
+ );
+ return array( 'before', '[INVALID]' );
}
}