change [[Special:Block]] to destructive
authorDouglas Gardner <douglas@chippy.ch>
Tue, 7 Oct 2014 23:07:58 +0000 (00:07 +0100)
committerDouglas Gardner <douglas@chippy.ch>
Tue, 7 Oct 2014 23:07:58 +0000 (00:07 +0100)
Bug: 66145
Change-Id: I1ae04e15ea8046d50a58952f627a3e7d8bd941a4

includes/specials/SpecialBlock.php

index 3297c17..cf82b86 100644 (file)
@@ -98,6 +98,7 @@ class SpecialBlock extends FormSpecialPage {
                $form->setWrapperLegendMsg( 'blockip-legend' );
                $form->setHeaderText( '' );
                $form->setSubmitCallback( array( __CLASS__, 'processUIForm' ) );
+               $form->setSubmitDestructive();
 
                $msg = $this->alreadyBlocked ? 'ipb-change-block' : 'ipbsubmit';
                $form->setSubmitTextMsg( $msg );