Merge "Convert Special:Lockdb and Special:Unlockdb to OOUI"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 7 May 2016 14:28:18 +0000 (14:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 7 May 2016 14:28:18 +0000 (14:28 +0000)
includes/specials/SpecialLockdb.php
includes/specials/SpecialUnlockdb.php

index a229fa3..cb7eb36 100644 (file)
@@ -65,9 +65,9 @@ class SpecialLockdb extends FormSpecialPage {
        }
 
        protected function alterForm( HTMLForm $form ) {
-               $form->setWrapperLegend( false );
-               $form->setHeaderText( $this->msg( 'lockdbtext' )->parseAsBlock() );
-               $form->setSubmitTextMsg( 'lockbtn' );
+               $form->setWrapperLegend( false )
+                       ->setHeaderText( $this->msg( 'lockdbtext' )->parseAsBlock() )
+                       ->setSubmitTextMsg( 'lockbtn' );
        }
 
        public function onSubmit( array $data ) {
@@ -105,6 +105,10 @@ class SpecialLockdb extends FormSpecialPage {
                $out->addWikiMsg( 'lockdbsuccesstext' );
        }
 
+       protected function getDisplayFormat() {
+               return 'ooui';
+       }
+
        protected function getGroupName() {
                return 'wiki';
        }
index 9214c23..474c3af 100644 (file)
@@ -58,9 +58,9 @@ class SpecialUnlockdb extends FormSpecialPage {
        }
 
        protected function alterForm( HTMLForm $form ) {
-               $form->setWrapperLegend( false );
-               $form->setHeaderText( $this->msg( 'unlockdbtext' )->parseAsBlock() );
-               $form->setSubmitTextMsg( 'unlockbtn' );
+               $form->setWrapperLegend( false )
+                       ->setHeaderText( $this->msg( 'unlockdbtext' )->parseAsBlock() )
+                       ->setSubmitTextMsg( 'unlockbtn' );
        }
 
        public function onSubmit( array $data ) {
@@ -86,6 +86,10 @@ class SpecialUnlockdb extends FormSpecialPage {
                $out->addWikiMsg( 'unlockdbsuccesstext' );
        }
 
+       protected function getDisplayFormat() {
+               return 'ooui';
+       }
+
        protected function getGroupName() {
                return 'wiki';
        }