X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnlockdb.php;h=8cd86ce645394407f3f2d75769737d7b7ee71f3b;hb=d2b5c86eac27b0ce60076502f195b1b37d762c60;hp=b73e3c597e9ecfd92de49d74b68aa3bcfb9897e2;hpb=3c18e32e58d53ab38d1dd52d00f248ddef435ebd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnlockdb.php b/includes/specials/SpecialUnlockdb.php index b73e3c597e..8cd86ce645 100644 --- a/includes/specials/SpecialUnlockdb.php +++ b/includes/specials/SpecialUnlockdb.php @@ -33,7 +33,7 @@ class SpecialUnlockdb extends FormSpecialPage { } public function doesWrites() { - return true; + return false; } public function requiresWrite() { @@ -49,18 +49,18 @@ class SpecialUnlockdb extends FormSpecialPage { } protected function getFormFields() { - return array( - 'Confirm' => array( + return [ + 'Confirm' => [ 'type' => 'toggle', 'label-message' => 'unlockconfirm', - ), - ); + ], + ]; } 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'; }