[FIX] restore request.website_multilang for templates

This commit is contained in:
Fabien Meghazi 2014-05-13 12:07:20 +02:00
parent 8eed143112
commit c73a2f1c57
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ class ir_http(orm.AbstractModel):
# in all cases, website processes them
request.website_enabled = True
request.website_multilang = request.website_enabled and func.routing.get('multilang', True)
if request.website_enabled:
if func:
self._authenticate(func.routing['auth'])