From 31177024a221136119a3a9da5718ad702c1dd0b4 Mon Sep 17 00:00:00 2001 From: Reedy Date: Thu, 15 Dec 2016 22:43:07 +0000 Subject: [PATCH] Fix undefined $param Change-Id: I2b6862284b80c27f1f6189a261428324295699ae --- includes/Message.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Message.php b/includes/Message.php index 2816aedeec..3893c9deb3 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -1306,7 +1306,8 @@ class Message implements MessageSpecifier, Serializable { protected function formatListParam( array $params, $listType, $format ) { if ( !isset( self::$listTypeMap[$listType] ) ) { $warning = 'Invalid list type for message "' . $this->getKey() . '": ' . - htmlspecialchars( serialize( $param ) ); + htmlspecialchars( serialize( $params ) + ); trigger_error( $warning, E_USER_WARNING ); $e = new Exception; wfDebugLog( 'Bug58676', $warning . "\n" . $e->getTraceAsString() ); -- 2.20.1