mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-01 18:03:29 +02:00
Renamed themes config.php to functions.php
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user