X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHtml.php;h=60be86360d2064ae130f2ab1ebb7ac2387af99a8;hb=13ae6bfb4fe54b0798e9be985951797605edf144;hp=14456e4beeeedda2653a73b889021a28082b716d;hpb=26f2cec4259166f440c6eba3bdacd3555057ec78;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 14456e4bee..60be86360d 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -465,8 +465,7 @@ class Html { $key = strtolower( $key ); // Here we're blacklisting some HTML5-only attributes... - if ( !$wgHtml5 && in_array( $key, self::$HTMLFiveOnlyAttribs ) - ) { + if ( !$wgHtml5 && in_array( $key, self::$HTMLFiveOnlyAttribs ) ) { continue; } @@ -738,7 +737,7 @@ class Html { } } - if (substr($value, 0, 1) == "\n") { + if ( substr( $value, 0, 1 ) == "\n" ) { // Workaround for bug 12130: browsers eat the initial newline // assuming that it's just for show, but they do keep the later // newlines, which we may want to preserve during editing. @@ -930,7 +929,7 @@ class Html { $icon = $wgStylePath.'/common/images/'.$icon; } - $s = Html::openElement( 'div', array( 'class' => "mw-infobox $class") ); + $s = Html::openElement( 'div', array( 'class' => "mw-infobox $class" ) ); $s .= Html::openElement( 'div', array( 'class' => 'mw-infobox-left' ) ). Html::element( 'img',