From fa199cb766d3cc652e4b0654473445c791b0926e Mon Sep 17 00:00:00 2001 From: BernhardBaumrock Date: Sat, 30 Nov 2024 15:39:51 +0100 Subject: [PATCH] chore!: make autoPrepend optional by default and only load it if $config->rockfrontendAutoPrepend is set --- RockFrontend.module.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RockFrontend.module.php b/RockFrontend.module.php index 5807bd5..b4a509d 100644 --- a/RockFrontend.module.php +++ b/RockFrontend.module.php @@ -1014,6 +1014,8 @@ public function assetPath($path): string */ public function autoPrepend($event) { + if (!wire()->config->rockfrontendAutoPrepend) return; + /** @var Templatefile $tpl */ $tpl = $event->object; $this->autoPrependFile = (string)$tpl;