public function __construct( $info ) {
$info['nodata'] = true;
- if ( isset( $info['flags'] ) )
+ if ( isset( $info['flags'] ) ) {
$this->mFlags = $info['flags'];
+ }
parent::__construct( $info );
}
) {
$prefix = 'mw-ui-';
// add mw-ui-button separately, so the descriptor doesn't need to set it
- $flags .= $prefix.'button';
+ $flags .= ' ' . $prefix . 'button';
}
foreach ( $this->mFlags as $flag ) {
$flags .= ' ' . $prefix . $flag;