From d47337a6a2b61413dfaacd8e22dcd8e6296caff1 Mon Sep 17 00:00:00 2001 From: Jack Wilkinson Date: Tue, 5 Jul 2022 03:43:25 +0100 Subject: [PATCH] Added defaults to brand settings config calls --- modules/backend/models/BrandSetting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/backend/models/BrandSetting.php b/modules/backend/models/BrandSetting.php index 6c65168696..c1be659895 100644 --- a/modules/backend/models/BrandSetting.php +++ b/modules/backend/models/BrandSetting.php @@ -145,7 +145,7 @@ public function initSettingsData() $this->menu_mode = $config->get('brand.menuMode', self::INLINE_MENU); // Attempt to load custom CSS - $brandCssPath = File::symbolizePath(Config::get('brand.customLessPath')); + $brandCssPath = File::symbolizePath(Config::get('brand.customLessPath', '')); if ($brandCssPath && File::exists($brandCssPath)) { $this->custom_css = File::get($brandCssPath); } @@ -231,7 +231,7 @@ public static function isBaseConfigured() public static function getDefaultFavicon() { - $faviconPath = File::symbolizePath(Config::get('brand.faviconPath')); + $faviconPath = File::symbolizePath(Config::get('brand.faviconPath', '')); if ($faviconPath && File::exists($faviconPath)) { return Url::asset(File::localToPublic($faviconPath)); @@ -242,7 +242,7 @@ public static function getDefaultFavicon() public static function getDefaultLogo() { - $logoPath = File::symbolizePath(Config::get('brand.logoPath')); + $logoPath = File::symbolizePath(Config::get('brand.logoPath', '')); if ($logoPath && File::exists($logoPath)) { return Url::asset(File::localToPublic($logoPath));