X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FPurgeAction.php;h=904c6e273d0c18139e05cb9fa8489716d9f5002c;hb=9518265c5ca65bd16cfcc0f4ff8ada678b72773c;hp=b2002ffae9acb98b8e424953c8c02aeb05ac893e;hpb=9b4fd6a6c054a8b012ea0d358478f3ee1c392469;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/PurgeAction.php b/includes/actions/PurgeAction.php index b2002ffae9..904c6e273d 100644 --- a/includes/actions/PurgeAction.php +++ b/includes/actions/PurgeAction.php @@ -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() {