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:
Jan Böhmer 2020-08-21 23:17:17 +02:00
parent 7ec3790329
commit 37c076c4c8

View file

@ -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'}) }}">