CategoryTreeHooks: Move call that is independent of a loop

Change-Id: I0901aad1581a2b679bcb68b3c7a733f9db9be81c
This commit is contained in:
Reedy 2021-04-07 22:34:03 +00:00
parent 4487aa860b
commit 7dbedfde4d

View file

@ -245,8 +245,8 @@ class CategoryTreeHooks {
foreach ( $categories as $category => $type ) {
$links[$type][] = self::parserHook( $category, $wgCategoryTreePageCategoryOptions, null, null, true );
CategoryTree::setHeaders( $out );
}
CategoryTree::setHeaders( $out );
return false;
}