summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-09-03 00:57:09 +0200
committerAdam Tauber <asciimoo@gmail.com>2014-09-03 00:57:09 +0200
commit22a3cf7ac7eb808bbd46bd364ab3752e2f7f122c (patch)
tree2573c14fcdd4e3f83c5746138182fdcd8ab30c6d /searx
parentf825752145c3a94e078e7ba23a864e4ac37869f4 (diff)
[enh] HTTP GET theme select
Diffstat (limited to 'searx')
-rw-r--r--searx/webapp.py4
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