X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBlock.php;h=7330e7751eb5e7f30a94d942c06333eba4173fc5;hb=af1b81cf3876e02a1483d818b5bff2b87e22b038;hp=a00c42cd40bdca24138084c8f3dc5c7b97e2d51d;hpb=c32087b1ef05195110344c0529526be9cc923c52;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index a00c42cd40..7330e7751e 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -143,6 +143,8 @@ class SpecialBlock extends FormSpecialPage { protected function getFormFields() { global $wgBlockAllowsUTEdit; + $this->getOutput()->enableOOUI(); + $user = $this->getUser(); $suggestedDurations = self::getSuggestedDurations(); @@ -177,8 +179,16 @@ class SpecialBlock extends FormSpecialPage { 'type' => 'radio', 'cssclass' => 'mw-block-editing-restriction', 'options' => [ - $this->msg( 'ipb-sitewide' )->escaped() => 'sitewide', - $this->msg( 'ipb-partial' )->escaped() => 'partial', + $this->msg( 'ipb-sitewide' )->escaped() . + new \OOUI\LabelWidget( [ + 'classes' => [ 'oo-ui-inline-help' ], + 'label' => $this->msg( 'ipb-sitewide-help' )->text(), + ] ) => 'sitewide', + $this->msg( 'ipb-partial' )->escaped() . + new \OOUI\LabelWidget( [ + 'classes' => [ 'oo-ui-inline-help' ], + 'label' => $this->msg( 'ipb-partial-help' )->text(), + ] ) => 'partial', ], 'section' => 'actions', ]; @@ -310,8 +320,6 @@ class SpecialBlock extends FormSpecialPage { * If the user has already been blocked with similar settings, load that block * and change the defaults for the form fields to match the existing settings. * @param array &$fields HTMLForm descriptor array - * @return bool Whether fields were altered (that is, whether the target is - * already blocked) */ protected function maybeAlterFormDefaults( &$fields ) { # This will be overwritten by request data