Browse Source

[enh] HTTP GET theme select

Adam Tauber 10 years ago
parent
commit
22a3cf7ac7
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      searx/webapp.py

+ 3
- 1
searx/webapp.py View File

113
 
113
 
114
     if override and override in themes:
114
     if override and override in themes:
115
         return override
115
         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))
117
     if theme_name not in themes:
119
     if theme_name not in themes:
118
         theme_name = default_theme
120
         theme_name = default_theme
119
     return theme_name
121
     return theme_name