}
/**
- * Show the special page
- *
- * @param string $par Parameter passed to the page or null
+ * @param string|null $par Parameter passed to the page or null
*/
public function execute( $par ) {
$out = $this->getOutput();
$this->setHeaders();
if ( !$this->getConfig()->get( 'UseDatabaseMessages' ) ) {
- $out->addWikiMsg( 'allmessagesnotsupportedDB' );
+ $out->addWikiMsg( 'allmessages-not-supported-database' );
return;
}
'type' => 'radio',
'name' => 'filter',
'label-message' => 'allmessages-filter',
- 'options' => [
- $this->msg( 'allmessages-filter-unmodified' )->text() => 'unmodified',
- $this->msg( 'allmessages-filter-all' )->text() => 'all',
- $this->msg( 'allmessages-filter-modified' )->text() => 'modified',
+ 'options-messages' => [
+ 'allmessages-filter-unmodified' => 'unmodified',
+ 'allmessages-filter-all' => 'all',
+ 'allmessages-filter-modified' => 'modified',
],
'default' => 'all',
'flatlist' => true,