From ee663b5e40be6751cb384180c89fe9bd1816c18a Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 6 Dec 2015 15:58:31 +0100 Subject: [PATCH] Fill getSubpagesForPrefixSearch of Special:Tags Adding all the possible sub pages to getSubpagesForPrefixSearch will show them up on search suggestion Change-Id: I4bd99376bbddbbce1812119a43484f08e2360ff5 --- includes/specials/SpecialTags.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/includes/specials/SpecialTags.php b/includes/specials/SpecialTags.php index 71f387b621..97f2380719 100644 --- a/includes/specials/SpecialTags.php +++ b/includes/specials/SpecialTags.php @@ -451,6 +451,20 @@ class SpecialTags extends SpecialPage { } } + /** + * Return an array of subpages that this special page will accept. + * + * @return string[] subpages + */ + public function getSubpagesForPrefixSearch() { + return array( + 'delete', + 'activate', + 'deactivate', + 'create', + ); + } + protected function getGroupName() { return 'changes'; } -- 2.20.1