From e74819c3df7599b34788db641f9ceeff7cede4b1 Mon Sep 17 00:00:00 2001 From: Moriel Schottlender Date: Wed, 13 Feb 2019 13:54:01 -0800 Subject: [PATCH] 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 --- includes/specials/SpecialBlock.php | 1 + 1 file changed, 1 insertion(+) 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 ], -- 2.20.1