X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialAllMessages.php;h=f6b8b90522b4935e0edf16c0a62f5f621aabf225;hb=370bb99a9bb9836286af54856392ecabf09969f7;hp=2482d740b9f0b5077b74568c8a7fc209e7b93ae9;hpb=0601f359eb5fb2bf9ea28a4277d8f20c3e66a248;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialAllMessages.php b/includes/specials/SpecialAllMessages.php index 2482d740b9..f6b8b90522 100644 --- a/includes/specials/SpecialAllMessages.php +++ b/includes/specials/SpecialAllMessages.php @@ -35,9 +35,7 @@ class SpecialAllMessages extends SpecialPage { } /** - * 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(); @@ -45,7 +43,7 @@ class SpecialAllMessages extends SpecialPage { $this->setHeaders(); if ( !$this->getConfig()->get( 'UseDatabaseMessages' ) ) { - $out->addWikiMsg( 'allmessagesnotsupportedDB' ); + $out->addWikiMsg( 'allmessages-not-supported-database' ); return; } @@ -79,10 +77,10 @@ class SpecialAllMessages extends SpecialPage { '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,