X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FHtml.php;h=b7958dd4a0c86acafec505d727bff38e2638c0ac;hb=9fbb5b9ea8f9e83ac2d5d3bb7fd3cee38b2eeff6;hp=62ae0b85913b249da929d4957e4a1fd5fd33037e;hpb=f1a890c34cebd8744bf3a6277734275fb975575a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 62ae0b8591..b7958dd4a0 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -597,7 +597,6 @@ class Html { // we may as well not call htmlspecialchars(). // @todo FIXME: Verify that we actually need to // escape \n\r\t here, and explain why, exactly. - # // We could call Sanitizer::encodeAttribute() for this, but we // don't because we're stubborn and like our marginal savings on // byte size from not having to encode unnecessary quotes. @@ -745,10 +744,10 @@ class Html { } /** - * Convenience function to produce a checkbox (input element with type=checkbox) + * Convenience function to produce a radio button (input element with type=radio) * * @param string $name Name attribute - * @param bool $checked Whether the checkbox is checked or not + * @param bool $checked Whether the radio button is checked or not * @param array $attribs Array of additional attributes * @return string Raw HTML */ @@ -857,7 +856,7 @@ class Html { } elseif ( is_int( $nsId ) ) { $nsName = $wgContLang->convertNamespace( $nsId ); } - $optionsOut[ $nsId ] = $nsName; + $optionsOut[$nsId] = $nsName; } return $optionsOut;