Skip to content

Commit 0850c09

Browse files
committed
self.title does not work
1 parent 30108e7 commit 0850c09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plone/namedfile/scaling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,11 @@ def srcset(
777777
)
778778
attributes = {}
779779
if title is _marker:
780-
attributes["title"] = self.title
780+
attributes["title"] = self.context.Title()
781781
elif title:
782782
attributes["title"] = title
783783
if alt is _marker:
784-
attributes["alt"] = self.title
784+
attributes["alt"] = self.context.Title()
785785
else:
786786
attributes["alt"] = alt
787787

0 commit comments

Comments
 (0)