Commit 5dee3616 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

if ignore_layout is specified, do not change skin at all.

otherwise the result is unpredictable.
parent 76919bdc
......@@ -110,6 +110,7 @@ class WebSiteTraversalHook(Persistent):
self._v_request = request
request.physicalPathToVirtualPath = self._physicalPathToVirtualPath
if not request.get('ignore_layout', None):
# If a skin selection is defined in this web site, change the skin now.
skin_selection_name = container.getSkinSelectionName()
if skin_selection_name and request.get('portal_skin', None) is None:
......
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