Commit 0853fb6b authored by Julien Muchembled's avatar Julien Muchembled

Fix ERP5Site.getSite when the root folder is not activated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38727 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent edea3dfe
......@@ -195,8 +195,7 @@ class _site(threading.local):
XXX The returned site is not wrapped in a request.
"""
app, site_id = self.site[-1]
app = app()
return CMFSite.__of__(app.__dict__[site_id], app)
return getattr(app(), site_id)
def __set(self, site):
app = aq_base(site.aq_parent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment