From: Florian Schmidt Date: Tue, 18 Oct 2016 17:04:02 +0000 (+0200) Subject: Add form identifier to Special:BlockList X-Git-Tag: 1.31.0-rc.0~4951^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=a15000445514fe94924f8c1bebedbc2a3c820cc9;p=lhc%2Fweb%2Fwiklou.git Add form identifier to Special:BlockList This will allow HTMLForm to indentify, if the form was submitted and use the data of the request, instead of the default data. Bug: T147705 Change-Id: I1a5129eb6d24c3f4963bf63e9db9a41f68ef3bbc --- diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index 39ca8dd746..0899d5809c 100644 --- a/includes/specials/SpecialBlockList.php +++ b/includes/specials/SpecialBlockList.php @@ -105,6 +105,7 @@ class SpecialBlockList extends SpecialPage { $form = HTMLForm::factory( 'ooui', $fields, $context ); $form ->setMethod( 'get' ) + ->setFormIdentifier( 'blocklist' ) ->setWrapperLegendMsg( 'ipblocklist-legend' ) ->setSubmitTextMsg( 'ipblocklist-submit' ) ->setSubmitProgressive()