X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMessage.php;h=0b3113f29c3301a85a37a8570529ddae461dd0f6;hb=cbe3c7c8e37d322eca797be23a9687b4b1273f97;hp=15d97861b1dfd368834c34ad9d3b41e698fe4fc1;hpb=41fa0b12e7c4d38c7e7d20ac099394015ef7a55c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Message.php b/includes/Message.php index 15d97861b1..0b3113f29c 100644 --- a/includes/Message.php +++ b/includes/Message.php @@ -289,7 +289,6 @@ class Message implements MessageSpecifier, Serializable { 'parameters' => $this->parameters, 'format' => $this->format, 'useDatabase' => $this->useDatabase, - 'title' => $this->title, 'titlestr' => $this->title ? $this->title->getFullText() : null, ] ); } @@ -1164,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 ); } /**