From 7dbedfde4dade25ef5362b19c48fb80a265ec6a0 Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 7 Apr 2021 22:34:03 +0000 Subject: [PATCH] CategoryTreeHooks: Move call that is independent of a loop Change-Id: I0901aad1581a2b679bcb68b3c7a733f9db9be81c --- includes/CategoryTreeHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CategoryTreeHooks.php b/includes/CategoryTreeHooks.php index aea1284a..7c554b8e 100644 --- a/includes/CategoryTreeHooks.php +++ b/includes/CategoryTreeHooks.php @@ -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; }