Skip to content

Commit

Permalink
chore!: make autoPrepend optional by default and only load it if $con…
Browse files Browse the repository at this point in the history
…fig->rockfrontendAutoPrepend is set
BernhardBaumrock committed Nov 30, 2024
1 parent 91b574b commit fa199cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RockFrontend.module.php
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit fa199cb

Please sign in to comment.