Suppress hidden categories from subpage prefix searches

ie. When you type "Special:LintErrors/" in the search box.

Bug: T334527
Change-Id: I0bb478086d22b65ce8c5ad48db7f522ac974d95d
This commit is contained in:
Arlo Breault 2024-04-18 16:56:54 -04:00
parent 22c1bfb865
commit 68dd2651bf

View file

@ -384,10 +384,7 @@ class SpecialLintErrors extends SpecialPage {
* @return string[]
*/
protected function getSubpagesForPrefixSearch() {
return array_merge(
$this->categoryManager->getVisibleCategories(),
$this->categoryManager->getInvisibleCategories()
);
return $this->categoryManager->getVisibleCategories();
}
}