Projet

Général

Profil

0001-don-t-generate-box-details-for-json-calls-25541.patch

Frédéric Péters, 31 juillet 2018 10:12

Télécharger (1,02 ko)

Voir les différences:

Subject: [PATCH] don't generate box details for json calls (#25541)

 auquotidien/modules/root.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
auquotidien/modules/root.py
808 808
            response.filter = {}
809 809

  
810 810
        response.filter['auquotidien'] = True
811
        if not path or path[0] not in ('api', 'backoffice'):
811
        if not path or (path[0] not in ('api', 'backoffice') and not get_request().is_json()):
812 812
            # api & backoffice have no use for a side box
813 813
            response.filter['gauche'] = self.box_side(path)
814 814
            response.filter['keywords'] = template.get_current_theme().get('keywords')
815
-