X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWatchlist.php;h=9493663387a0b2607257b45225d6e65fa02d1742;hb=7a477b2df2e56a7c51601d092b2eac29d35d4e3e;hp=ff62e9e6033dafc7b464fd1532d475a7151d7689;hpb=808e45d13d400256d36cfcd95e79a567197d9a8b;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php
index ff62e9e603..9493663387 100644
--- a/includes/specials/SpecialWatchlist.php
+++ b/includes/specials/SpecialWatchlist.php
@@ -855,11 +855,12 @@ class SpecialWatchlist extends ChangesListSpecialPage {
return Html::rawElement(
'span',
$attribs,
- Xml::checkLabel(
- $this->msg( $message, '' )->text(),
- $name,
- $name,
- (int)$value
+ // not using Html::checkLabel because that would escape the contents
+ Html::check( $name, (int)$value, [ 'id' => $name ] ) . Html::rawElement(
+ 'label',
+ $attribs + [ 'for' => $name ],
+ // at beginning to avoid messages with "$1 ..." being parsed as pre tags
+ $this->msg( $message, '' )->parse()
)
);
}