changeset 1613:5ed53bd2b3f8

ImageLink: minor change
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 08 Oct 2006 21:30:06 +0200
parents c0f9f5f1f308
children f89eb93324e2
files MoinMoin/macro/ImageLink.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/ImageLink.py	Sun Oct 08 21:22:18 2006 +0200
+++ b/MoinMoin/macro/ImageLink.py	Sun Oct 08 21:30:06 2006 +0200
@@ -137,7 +137,7 @@
                 target = (target.split('attachment:'))[1]
                 pagename, attname = AttachFile.absoluteName(target, formatter.page.page_name)
                 target = AttachFile.getAttachUrl(pagename, target, request)
-            if target.startswith('inline:'):
+            elif target.startswith('inline:'):
                 target = (target.split('inline:'))[1]
                 pagename, attname = AttachFile.absoluteName(target, formatter.page.page_name)
                 target = AttachFile.getAttachUrl(pagename, target, request, do='view')