X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMessage.php;h=0b3113f29c3301a85a37a8570529ddae461dd0f6;hb=3a66680ec587e131a288f01ac75cf6242bc406d7;hp=4049e114f39b3650a35a0a690745b2d68d3af9dc;hpb=be33fee8260d8aae2aa58e485463b25064f94ecb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Message.php b/includes/Message.php index 4049e114f3..0b3113f29c 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -1163,14 +1163,11 @@ class Message implements MessageSpecifier, Serializable { // escaped, breaking the replacement and avoiding XSS. $replacementKeys['$' . ( $n + 1 )] = $marker . ( $n + 1 ); } - } else { - if ( $paramType === 'after' ) { - $replacementKeys[$marker . ( $n + 1 )] = $value; - } + } elseif ( $paramType === 'after' ) { + $replacementKeys[$marker . ( $n + 1 )] = $value; } } - $message = strtr( $message, $replacementKeys ); - return $message; + return strtr( $message, $replacementKeys ); } /**