function makeIndexes( $arr ) {
$str = '';
+ wfSuppressWarnings();
foreach ( $arr as $item )
$str .= '["' . addslashes( $item ) . '"]';
+ wfRestoreWarnings();
return $str;
}
$this->html .= $this->outputOption(
$this->msg( $key ),
array(
- 'value' => ''
+ 'value' => '',
+ 'disabled' => 'disabled',
),
$depth
);
$this->html .= $this->outputOption(
$this->msg( $val->text ),
array(
- 'value' => $val->template
+ 'value' => $val->template,
+ 'title' => $val->template
),
$depth
);
}
function outputOption( $val, $attribs = null, $depth ) {
- $val = str_repeat( /*   */ "\xc2\xa0", $depth ) . $val;
+ $val = str_repeat( /*   */ "\xc2\xa0", $depth * 2 ) . $val;
return str_repeat( "\t", $depth ) . wfElement( 'option', $attribs, $val ) . "\n";
}