From 9faf40e083be4bedb9e631e36bb15d360c97fe0f Mon Sep 17 00:00:00 2001 From: Florian Thoma Date: Wed, 29 Nov 2023 16:00:52 +1100 Subject: [PATCH] remove preloading of pages as it interferes with custom code in init() or actions --- src/Extensions/ListingsControllerExtension.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Extensions/ListingsControllerExtension.php b/src/Extensions/ListingsControllerExtension.php index fc848c9..a0aa062 100644 --- a/src/Extensions/ListingsControllerExtension.php +++ b/src/Extensions/ListingsControllerExtension.php @@ -15,11 +15,6 @@ class ListingsControllerExtension extends Extension private static $listed_pages_classes = []; private static $listed_pages_index_only = false; - public function onBeforeInit() - { - $this->owner->getListedPages(); - } - public function getListedPages() { if ($this->owner->hasDynamicData('listedPages')) {