X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2Factions%2FPurgeAction.php;h=904c6e273d0c18139e05cb9fa8489716d9f5002c;hb=e3e33ce99c909103b4b2b861c8361729441eccc8;hp=942b7316348298e7f873199b25245d8f8946529a;hpb=d9b2cdabdc0a11344158d81ee45a91675a51e945;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/PurgeAction.php b/includes/actions/PurgeAction.php index 942b731634..904c6e273d 100644 --- a/includes/actions/PurgeAction.php +++ b/includes/actions/PurgeAction.php @@ -42,7 +42,7 @@ class PurgeAction extends FormAction { } public function onSubmit( $data ) { - return $this->page->doPurge( WikiPage::PURGE_ALL ); + return $this->page->doPurge(); } public function show() { @@ -75,12 +75,24 @@ class PurgeAction extends FormAction { } } - protected function alterForm( HTMLForm $form ) { - $form->setSubmitTextMsg( 'confirm_purge_button' ); + protected function usesOOUI() { + return true; } - protected function preText() { - return $this->msg( 'confirm-purge-top' )->parse(); + protected function getFormFields() { + return [ + 'intro' => [ + 'type' => 'info', + 'vertical-label' => true, + 'raw' => true, + 'default' => $this->msg( 'confirm-purge-top' )->parse() + ] + ]; + } + + protected function alterForm( HTMLForm $form ) { + $form->setWrapperLegendMsg( 'confirm-purge-title' ); + $form->setSubmitTextMsg( 'confirm_purge_button' ); } protected function postText() {