X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLicenses.php;h=e8aee0b529a987a6e2bb3e77bd54c45bfb8fcf17;hb=e05c4e9df06d68fcd43ce8eb888a0bea71b9dadf;hp=ba504a9942bc7715f83e337de3f9f2e475e10ea2;hpb=1c00630787b120102dd4e91507bfc91efa5f75f2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Licenses.php b/includes/Licenses.php index ba504a9942..e8aee0b529 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 );