Skip to content

Commit

Permalink
Added defaults to brand settings config calls (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxwilko authored Jul 5, 2022
1 parent b90b4fe commit 60f0651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/backend/models/BrandSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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));
Expand All @@ -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));
Expand Down

1 comment on commit 60f0651

@okedialf
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome

Please sign in to comment.