X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHtml.php;h=932f753e92c30d20f8b695a8d6cf3cffd04e1463;hb=bc8f309bdad5f1f8b95fe14d8fd3bb126594c325;hp=1d45e6a504d27905d9cd3d4179d81046aac4ab88;hpb=9bb7dc358e8e31f3c395e4f33785718324d4b633;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 1d45e6a504..932f753e92 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -422,6 +422,7 @@ class Html { $ret = ''; $attribs = (array)$attribs; foreach ( $attribs as $key => $value ) { + // Support intuitive array( 'checked' => true/false ) form if ( $value === false || is_null( $value ) ) { continue; } @@ -846,7 +847,7 @@ class Html { # * text/xml # * application/xml # * Any mimetype with a subtype ending in +xml (this implicitly includes application/xhtml+xml) - return (bool) preg_match( '!^(text|application)/xml$|^.+/.+\+xml$!', $mimetype ); + return (bool)preg_match( '!^(text|application)/xml$|^.+/.+\+xml$!', $mimetype ); } /**