Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zopyx committed Jun 9, 2019
1 parent 144d522 commit bc0e304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plone/app/portlets/portlets/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ def getMimeTypeIcon(self, node):
mtt = getToolByName(self.context, 'mimetypes_registry')
if fileo.contentType:
ctype = mtt.lookup(fileo.contentType)
if not ctype:
return None
return os.path.join(
portal_url,
guess_icon_path(ctype[0])
Expand Down

0 comments on commit bc0e304

Please sign in to comment.