forked from Ponysearch/Ponysearch
[mod] refactor searx.webapp.render: remove unused parameters
This commit is contained in:
parent
15567955b4
commit
91856e8f6a
1 changed files with 1 additions and 4 deletions
|
@ -451,8 +451,7 @@ def render(template_name, override_theme=None, **kwargs):
|
||||||
_get_ordered_categories()
|
_get_ordered_categories()
|
||||||
if x in enabled_categories]
|
if x in enabled_categories]
|
||||||
|
|
||||||
if 'autocomplete' not in kwargs:
|
kwargs['autocomplete'] = request.preferences.get_value('autocomplete')
|
||||||
kwargs['autocomplete'] = request.preferences.get_value('autocomplete')
|
|
||||||
|
|
||||||
locale = request.preferences.get_value('locale')
|
locale = request.preferences.get_value('locale')
|
||||||
|
|
||||||
|
@ -485,8 +484,6 @@ def render(template_name, override_theme=None, **kwargs):
|
||||||
|
|
||||||
kwargs['theme'] = get_current_theme_name(override=override_theme)
|
kwargs['theme'] = get_current_theme_name(override=override_theme)
|
||||||
|
|
||||||
kwargs['template_name'] = template_name
|
|
||||||
|
|
||||||
kwargs['cookies'] = request.cookies
|
kwargs['cookies'] = request.cookies
|
||||||
|
|
||||||
kwargs['errors'] = request.errors
|
kwargs['errors'] = request.errors
|
||||||
|
|
Loading…
Reference in a new issue