commit: 22a3cf7ac7eb808bbd46bd364ab3752e2f7f122c
parent: f825752145c3a94e078e7ba23a864e4ac37869f4
Author: Adam Tauber <asciimoo@gmail.com>
Date: Wed, 3 Sep 2014 00:57:09 +0200
[enh] HTTP GET theme select
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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