Skip to content

Commit

Permalink
ensure default value is used in theme settings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Jul 24, 2024
1 parent 6c2e9aa commit 0fff45e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Core/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,12 @@ public function setActive(string $id): void
{

if ($id == '') {
$id = 'default';
$id = static::DEFAULT;
}

//not a valid theme. Use default
if (!is_dir(ROOT . '/theme/' . $id) || !file_exists(ROOT . '/theme/' . $id . '/' . static::DEFAULT_INI . '.ini')) {
$id = 'default';
$id = static::DEFAULT;
}

//Only set if user is logged in
Expand Down

0 comments on commit 0fff45e

Please sign in to comment.