Fix undefined $param
authorReedy <reedy@wikimedia.org>
Thu, 15 Dec 2016 22:43:07 +0000 (22:43 +0000)
committerReedy <reedy@wikimedia.org>
Thu, 15 Dec 2016 22:43:07 +0000 (22:43 +0000)
Change-Id: I2b6862284b80c27f1f6189a261428324295699ae

includes/Message.php

index 2816aed..3893c9d 100644 (file)
@@ -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() );