Merge "Clear cached HTML artifacts"
[lhc/web/wiklou.git] / includes / specials / SpecialProtectedpages.php
index 26f4da5..d99de1e 100644 (file)
@@ -92,7 +92,7 @@ class SpecialProtectedpages extends SpecialPage {
         *   cascadeOnly, noRedirect
         * @return string Input form
         */
-       protected function showOptions( $namespace, $type = 'edit', $level, $sizetype,
+       protected function showOptions( $namespace, $type, $level, $sizetype,
                $size, $filters
        ) {
                $formDescriptor = [
@@ -110,10 +110,10 @@ class SpecialProtectedpages extends SpecialPage {
                                'class' => 'HTMLMultiSelectField',
                                'label' => $this->msg( 'protectedpages-filters' )->text(),
                                'flatlist' => true,
-                               'options' => [
-                                       $this->msg( 'protectedpages-indef' )->text() => 'indefonly',
-                                       $this->msg( 'protectedpages-cascade' )->text() => 'cascadeonly',
-                                       $this->msg( 'protectedpages-noredirect' )->text() => 'noredirect',
+                               'options-messages' => [
+                                       'protectedpages-indef' => 'indefonly',
+                                       'protectedpages-cascade' => 'cascadeonly',
+                                       'protectedpages-noredirect' => 'noredirect',
                                ],
                                'default' => $filters,
                        ],