From: Moriel Schottlender Date: Wed, 13 Feb 2019 21:54:01 +0000 (-0800) Subject: Remove suggestions for negative namespaces in Page Restrictions X-Git-Tag: 1.34.0-rc.0~2762^2 X-Git-Url: http://git.cyclocoop.org/%27%2C%20%20%20quote_amp%28%24url%29%2C%20%20%20%27?a=commitdiff_plain;h=e74819c3df7599b34788db641f9ceeff7cede4b1;p=lhc%2Fweb%2Fwiklou.git Remove suggestions for negative namespaces in Page Restrictions When displaying suggestions for page restrictions, do not suggest any page with negative namespace, since those are illegal for a partial block restriction anyways, and will be rejected. Bug: T208355 Change-Id: I71727ee1ff40255df9ad95c268f94fcb2a81a595 --- diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index a6fd55ebcf..b4b6e26054 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -189,6 +189,7 @@ class SpecialBlock extends FormSpecialPage { 'max' => 10, 'cssclass' => 'mw-block-restriction', 'showMissing' => false, + 'excludeDynamicNamespaces' => true, 'input' => [ 'autocomplete' => false ],