Renamed themes config.php to functions.php

This commit is contained in:
Chris Kankiewicz
2019-12-12 21:42:07 -07:00
parent e67b5a5249
commit 86eb25d2f0
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {