More properly fix error message
I2b686228 was a quick bandaid, but resulted in the error message not actually reporting the incorrect list type. Change-Id: I2b2bd6ee66a78fadb31b3524dfe04bf9e1f45535
This commit is contained in:
parent
9ac29c74ed
commit
773556d635
1 changed files with 3 additions and 3 deletions
|
|
@ -1305,9 +1305,9 @@ 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( $params )
|
||||
);
|
||||
$warning = 'Invalid list type for message "' . $this->getKey() . '": '
|
||||
. htmlspecialchars( $listType )
|
||||
. ' (params are ' . htmlspecialchars( serialize( $params ) ) . ')';
|
||||
trigger_error( $warning, E_USER_WARNING );
|
||||
$e = new Exception;
|
||||
wfDebugLog( 'Bug58676', $warning . "\n" . $e->getTraceAsString() );
|
||||
|
|
|
|||
Loading…
Reference in a new issue