Commit c8fc7969 authored by 's avatar

Fixed bug 1830: title_or_id used in imagefile but not defined

parent 7aeacb94
......@@ -84,7 +84,7 @@
##############################################################################
"""Image object that is stored in a file"""
__version__='$Revision: 1.11 $'[11:-2]
__version__='$Revision: 1.12 $'[11:-2]
from OFS.content_types import guess_content_type
from Globals import package_home
......@@ -164,5 +164,5 @@ class ImageFile(Acquisition.Explicit):
return 1
def __str__(self):
return '<IMG SRC="%s" ALT="%s">' % (self.__name__, self.title_or_id())
return '<img src="%s" alt="" />' % self.__name__
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