turn "gauche" variable into a callable, for lazy generation (#59881)
This commit is contained in:
parent
4da61beff1
commit
a604135ed7
|
@ -287,7 +287,7 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
response.filter['auquotidien'] = True
|
||||
if not path or (path[0] not in ('api', 'backoffice') and not get_request().is_json()):
|
||||
# api & backoffice have no use for a side box
|
||||
response.filter['gauche'] = self.box_side(path)
|
||||
response.filter['gauche'] = lambda x: self.box_side(path)
|
||||
response.filter['keywords'] = template.get_current_theme().get('keywords')
|
||||
get_publisher().substitutions.feed(self)
|
||||
|
||||
|
|
Reference in New Issue