Commit a6e3cc76 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

patches/CMFCoreSkinnable: do not use getSkinsFolderName

It is no longer supported in CMF 2.3, see Products.CMFCore
754894460271f8562d03e8c51e6efcee7223a3ba.
parent 15e48beb
...@@ -141,9 +141,7 @@ def CMFCoreSkinnableSkinnableObjectManager_changeSkin(self, skinname, REQUEST=No ...@@ -141,9 +141,7 @@ def CMFCoreSkinnableSkinnableObjectManager_changeSkin(self, skinname, REQUEST=No
Patched not to call getSkin. Patched not to call getSkin.
''' '''
if skinname is None: if skinname is None:
sfn = self.getSkinsFolderName() sf = getattr(self, "portal_skins", None)
if sfn is not None:
sf = getattr(self, sfn, None)
if sf is not None: if sf is not None:
skinname = sf.getDefaultSkin() skinname = sf.getDefaultSkin()
tid = get_ident() tid = get_ident()
......
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