[enh] HTTP GET theme select
commit22a3cf7ac7eb808bbd46bd364ab3752e2f7f122c
authorAdam Tauber <asciimoo@gmail.com>
dateWed 3 Sep 2014, 00:57 (12 years ago)
parentf825752
searx/webapp.py+3−1
@@ -113,7 +113,9 @@ def get_current_theme_name(override=None):
113113
114114 if override and override in themes:
115115 return override
116− theme_name = request.cookies.get('theme', default_theme)
116+ theme_name = request.args.get('theme',
117+ request.cookies.get('theme',
118+ default_theme))
117119 if theme_name not in themes:
118120 theme_name = default_theme
119121 return theme_name