Skip to content

Commit

Permalink
Use getIcon from plone_layout helper view
Browse files Browse the repository at this point in the history
This method was deprecated and has been removed from Plone 5.1.
  • Loading branch information
hvelarde committed Mar 28, 2017
1 parent 79d55bc commit 7e59bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/cover/browser/contentchooser.py
Expand Up @@ -102,7 +102,7 @@ def __init__(self, context, request, **kwargs):
""" Contructor """
self.context = context
self.request = request
util = api.content.get_view(u'plone', self.context, self.request)
util = api.content.get_view(u'plone_layout', self.context, self.request)
self.getIcon = util.getIcon

# check if object is a folderish object, if not, get it's parent.
Expand Down

0 comments on commit 7e59bc1

Please sign in to comment.