From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/Licenses.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'includes/Licenses.php') diff --git a/includes/Licenses.php b/includes/Licenses.php index ba504a99..e8aee0b5 100644 --- a/includes/Licenses.php +++ b/includes/Licenses.php @@ -117,7 +117,7 @@ class Licenses extends HTMLFormField { * @param $depth int */ protected function makeHtml( $tagset, $depth = 0 ) { - foreach ( $tagset as $key => $val ) + foreach ( $tagset as $key => $val ) { if ( is_array( $val ) ) { $this->html .= $this->outputOption( $key, '', @@ -135,6 +135,7 @@ class Licenses extends HTMLFormField { $depth ); } + } } /** @@ -148,8 +149,10 @@ class Licenses extends HTMLFormField { $msgObj = $this->msg( $message ); $text = $msgObj->exists() ? $msgObj->text() : $message; $attribs['value'] = $value; - if ( $value === $this->selected ) + if ( $value === $this->selected ) { $attribs['selected'] = 'selected'; + } + $val = str_repeat( /*   */ "\xc2\xa0", $depth * 2 ) . $text; return str_repeat( "\t", $depth ) . Xml::element( 'option', $attribs, $val ) . "\n"; } @@ -208,7 +211,7 @@ class License { /** * Constructor * - * @param $str String: license name?? + * @param string $str license name?? */ function __construct( $str ) { list( $text, $template ) = explode( '|', strrev( $str ), 2 ); -- cgit v1.2.2