mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Show default theme, if database has unknown theme value.
This prevents from deathlocks if somehow the DB value becomes invalid. This prevents behavior like in issue #76.
This commit is contained in:
parent
7ec3790329
commit
37c076c4c8
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@
|
|||
|
||||
|
||||
|
||||
{% if theme %}
|
||||
{% if theme and theme in constant('App\\Entity\\UserSystem\\User::AVAILABLE_THEMES') %}
|
||||
<link rel="stylesheet" href="{{ preload(asset('build/themes/' ~ theme ~ '.css'), {as: 'style'}) }}">
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ preload(asset('build/themes/bootstrap.css'), {as: 'style'}) }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue