From 86eb25d2f05cec20888a49fed512618ac7a1e768 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Thu, 12 Dec 2019 21:42:07 -0700 Subject: [PATCH] Renamed themes config.php to functions.php --- app/Bootstrap/ViewComposer.php | 6 +++--- app/themes/default/{config.php => functions.php} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename app/themes/default/{config.php => functions.php} (100%) 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