changeset 92:bb0f35d0e9c5

text_x_arnica: only item file is tested for isPicture
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 22 Jun 2008 11:47:44 +0200
parents 16d762c9c3e7
children 64797a5fc3d9
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Sun Jun 22 11:39:46 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Sun Jun 22 11:47:44 2008 +0200
@@ -383,7 +383,7 @@
 
         if self.only_items:
             files = quotes['image']
-            all_files = [attfile for attfile in files if AttachFile.exists(self.request, self.pagename, attfile)]
+            all_files = [fn for fn in files if wikiutil.isPicture(fn) and AttachFile.exists(self.request, self.pagename, fn)]
 
             if self.sort_by_alias:
                 alias_text = quotes['alias']