Fix default theme evaluation.
This commit is contained in:
parent
83cd4b7cd2
commit
d8276b763d
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ def render_template(request, template_name, **kwargs):
|
||||||
|
|
||||||
old_theme = request.cookies.get('etiquette_theme', None)
|
old_theme = request.cookies.get('etiquette_theme', None)
|
||||||
new_theme = request.args.get('theme', None)
|
new_theme = request.args.get('theme', None)
|
||||||
theme = 'turquoise' if new_theme == '' else new_theme or old_theme
|
theme = new_theme or old_theme or 'turquoise'
|
||||||
|
|
||||||
response = flask.render_template(
|
response = flask.render_template(
|
||||||
template_name,
|
template_name,
|
||||||
|
|
Loading…
Reference in a new issue