turn "gauche" variable into a callable, for lazy generation (#59881)

This commit is contained in:
Frédéric Péters 2021-12-18 13:31:06 +01:00
parent 4da61beff1
commit a604135ed7
1 changed files with 1 additions and 1 deletions

View File

@ -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)