X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHtml.php;h=a8dbd6155244c788d683735a3979d83f15f4b260;hb=c7d2fb7f7241b0f8a3849e87127a9204e5a19ef3;hp=5f4655c28aed072a01a487b4ffebff4bee2727a7;hpb=8872c1119ab98d2236111a0ad203289b47b48378;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 5f4655c28a..a8dbd61552 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -114,7 +114,7 @@ class Html { * shaved off the HTML output as well. * * @param string $element The element's name, e.g., 'a' - * @param array $attribs Associative array of attributes, e.g., array( + * @param array $attribs Associative array of attributes, e.g., array( * 'href' => 'http://www.mediawiki.org/' ). See expandAttributes() for * further documentation. * @param string $contents The raw HTML contents of the element: *not* @@ -414,7 +414,7 @@ class Html { * you can omit the key, e.g., array( 'checked' ) instead of * array( 'checked' => 'checked' ) or such. * - * @throws MWException if an attribute that doesn't allow lists is set to an array + * @throws MWException If an attribute that doesn't allow lists is set to an array * @return string HTML fragment that goes between element name and '>' * (starting with a space if at least one attribute is output) */ @@ -502,7 +502,7 @@ class Html { // Remove duplicates and create the string $value = implode( ' ', array_unique( $value ) ); - } else if ( is_array( $value ) ) { + } elseif ( is_array( $value ) ) { throw new MWException( "HTML attribute $key can not contain a list of values" ); }