diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2014-09-03 00:57:09 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2014-09-03 00:57:09 +0200 |
| commit | 22a3cf7ac7eb808bbd46bd364ab3752e2f7f122c (patch) | |
| tree | 2573c14fcdd4e3f83c5746138182fdcd8ab30c6d | |
| parent | f825752145c3a94e078e7ba23a864e4ac37869f4 (diff) | |
[enh] HTTP GET theme select
| -rw-r--r-- | searx/webapp.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |