From 96c5e091f1b1bcd08488bfbb0b2d6542d7f8f0d9 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Tue, 22 Nov 2016 01:16:28 -0800 Subject: [PATCH] SpecialLintErrors: Implement getSubpagesForPrefixSearch() Test plan: Type "Special:LintErrors/" into the search box, and see that the autocomplete dropdowns include the subpages for individual error categories. Bug: T151289 Change-Id: I919e0e51a3b956f275f9a372b2f2844002972ea7 --- includes/SpecialLintErrors.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/SpecialLintErrors.php b/includes/SpecialLintErrors.php index 16c289a6..78ecb6fa 100644 --- a/includes/SpecialLintErrors.php +++ b/includes/SpecialLintErrors.php @@ -77,4 +77,8 @@ class SpecialLintErrors extends SpecialPage { return 'maintenance'; } + protected function getSubpagesForPrefixSearch() { + return ( new CategoryManager() )->getVisibleCategories(); + } + }