$this->getOptions();
if ( !in_array( 'other', $this->mOptions, true ) ) {
$msg =
- isset( $params['other'] )
- ? $params['other']
- : wfMessage( 'htmlform-selectorother-other' )->text();
+ $params['other'] ?? wfMessage( 'htmlform-selectorother-other' )->text();
// Have 'other' always as first element
$this->mOptions = [ $msg => 'other' ] + $this->mOptions;
}
}
public function getInputWidget( $params ) {
- return new Mediawiki\Widget\SelectWithInputWidget( $params );
+ return new MediaWiki\Widget\SelectWithInputWidget( $params );
}
/**