From 22a3cf7ac7eb808bbd46bd364ab3752e2f7f122c Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Wed, 3 Sep 2014 00:57:09 +0200 Subject: [PATCH] [enh] HTTP GET theme select --- searx/webapp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 2bf3afaf4..ee516031a 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -113,7 +113,9 @@ def get_current_theme_name(override=None): if override and override in themes: return override - theme_name = request.cookies.get('theme', default_theme) + theme_name = request.args.get('theme', + request.cookies.get('theme', + default_theme)) if theme_name not in themes: theme_name = default_theme return theme_name