Commit 5eef334f authored by Jérome Perrin's avatar Jérome Perrin

Make sure custom skin folder is always the first in skins layers.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3547 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 465dcdec
......@@ -291,6 +291,9 @@ class SkinTemplateItem(ObjectTemplateItem):
if skin_id not in selection:
new_selection.append(skin_id)
new_selection.extend(selection)
# make sure custom is always the first layer
new_selection.remove('custom')
new_selection = ['custom'] + new_selection
ps.manage_skinLayers(skinpath = tuple(new_selection), skinname = skin_name, add_skin = 1)
def uninstall(self, context, **kw):
......
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