Commit db4adb5d authored by Georgios Dagkakis's avatar Georgios Dagkakis

Fixup! do not get title twice, use the variable already defined

parent 3a3b7709
......@@ -811,7 +811,7 @@ class ObjectTemplateItem(BaseTemplateItem):
# Try to guess the extension based on the title of the document
title = getattr(document, "title", None)
if title:
mime_type = mime.guess_type(document.title)
mime_type = mime.guess_type(title)
if mime_type[0]:
extension = guess_extension(mime_type[0])
return extension
......
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