diff --git a/app/Bootstrap/ViewComposer.php b/app/Bootstrap/ViewComposer.php index 3cacc16..0a52d20 100644 --- a/app/Bootstrap/ViewComposer.php +++ b/app/Bootstrap/ViewComposer.php @@ -80,10 +80,10 @@ class ViewComposer */ public function registerThemeFunctions(): void { - $themeConfigPath = "{$this->themePath}/config.php"; + $themeFunctionsFile = "{$this->themePath}/functions.php"; - if (file_exists($themeConfigPath)) { - $themeConfig = include $themeConfigPath; + if (file_exists($themeFunctionsFile)) { + $themeConfig = include $themeFunctionsFile; } foreach ($themeConfig['functions'] ?? [] as $function) { diff --git a/app/themes/default/config.php b/app/themes/default/functions.php similarity index 100% rename from app/themes/default/config.php rename to app/themes/default/functions.php