diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-11-15 09:56:18 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-11-15 09:56:18 +0100 |
commit | 827f9e41ca84638d873997001b53e7f4a62a78aa (patch) | |
tree | bcddb370f02c4d94b461714df524737fe53d9193 /searx/webapp.py | |
parent | 028e5b43d4aa43c498a60de9c6dac0bb3a0bb96d (diff) | |
download | searxng-827f9e41ca84638d873997001b53e7f4a62a78aa.tar.gz searxng-827f9e41ca84638d873997001b53e7f4a62a78aa.zip |
[fix] gettext requires request.preferences
Diffstat (limited to 'searx/webapp.py')
-rw-r--r-- | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 45332ba99..090df57e2 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -369,11 +369,11 @@ def pre_request(): request.errors = [] preferences = Preferences(themes, categories.keys(), engines, plugins) + request.preferences = preferences try: preferences.parse_cookies(request.cookies) except: request.errors.append(gettext('Invalid settings, please edit your preferences')) - request.preferences = preferences # merge GET, POST vars # request.form |