mediawiki-extensions-Catego.../includes
Fomafix 4bc230093f Remove check for shouldForceHeaders()
The CategoryTree::setHeaders() method adds modules to OutputPage.
It does not matter if setHeaders() gets called several times.

The previous code tried to avoid to call setHeaders() several times.
If wgCategoryTreeForceHeaders is set then the modules get loaded by the
hooks "BeforePageDisplay" or "BeforePageDisplayMobile" on every page.
In this case duplicate calls of setHeaders() are (partly) avoided by
not calling setHeaders() on other hooks.

This change removes this micro optimization and loads the modules
unconditionally if a category tree is added on a hook.
shouldForceHeaders() is now inlined.

Change-Id: Ic9219575a714886b4edd446efde2a330dff4dee6
2021-08-29 11:14:21 +00:00
..
ApiCategoryTree.php build: Updating composer dependencies 2021-05-04 01:18:21 +00:00
CategoryTree.php Move bullets from HTML to CSS 2021-08-21 14:50:15 +00:00
CategoryTreeCategoryPage.php Namespace extension 2021-04-08 01:28:21 +01:00
CategoryTreeCategoryViewer.php Remove check for shouldForceHeaders() 2021-08-29 11:14:21 +00:00
CategoryTreeHidePrefix.php Namespace extension 2021-04-08 01:28:21 +01:00
CategoryTreeMode.php Namespace extension 2021-04-08 01:28:21 +01:00
CategoryTreePage.php Remove check for shouldForceHeaders() 2021-08-29 11:14:21 +00:00
ConfigHookHandler.php Put onMediaWikiServices into a separate handler class. 2021-06-24 15:17:34 +00:00
Hooks.php Remove check for shouldForceHeaders() 2021-08-29 11:14:21 +00:00