X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMessage.php;h=0b3113f29c3301a85a37a8570529ddae461dd0f6;hb=e8805741ed75a6f1fec01bc39962af75e6111c1c;hp=4049e114f39b3650a35a0a690745b2d68d3af9dc;hpb=4905504faded8f85a9b3d68b27da5c9e2f11bd06;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 ); } /**