function __construct( $params ) {
if (! array_key_exists('other', $params['options']) ) {
- $params['options']['other'] = wfMsg( 'htmlform-selectorother-other' );
+ $params['options'][wfMsg( 'htmlform-selectorother-other' )] = 'other';
}
parent::__construct( $params );
$html .= $this->formatOptions( $info, $value );
} else {
$checkbox = Xml::check( $this->mName.'[]', in_array( $info, $value ),
- array( 'id' => $this->mID, 'value' => $info ) );
- $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID ), $label );
+ array( 'id' => $this->mID."-$info", 'value' => $info ) );
+ $checkbox .= ' ' . Xml::tags( 'label', array( 'for' => $this->mID."-$info" ), $label );
$html .= Xml::tags( 'p', null, $checkbox );
}