Fill getSubpagesForPrefixSearch of Special:Tags
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 6 Dec 2015 14:58:31 +0000 (15:58 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 6 Dec 2015 14:58:31 +0000 (15:58 +0100)
Adding all the possible sub pages to getSubpagesForPrefixSearch will
show them up on search suggestion

Change-Id: I4bd99376bbddbbce1812119a43484f08e2360ff5

includes/specials/SpecialTags.php

index 71f387b..97f2380 100644 (file)
@@ -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';
        }