summaryrefslogtreecommitdiff
path: root/includes/Message.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-11-30 05:40:20 +0100
committerPierre Schmitz <pierre@archlinux.de>2012-11-30 05:40:20 +0100
commit8a1f9ada65d746b630c96b184000f3f0bf6cf34d (patch)
treef641d0e874d1ac6a04c30e2e8a112fb1c4ceb6bd /includes/Message.php
parent9498a3d2852ace0f4ee23598f542dbce3fd2ec28 (diff)
Update to MediaWiki 1.19.3
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]' );
}
}