diff MoinMoin/action/AttachFile.py @ 3338:5f660b3c1cd7

moved browser_supported_images to config and exchanged it
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 19 Mar 2008 18:14:38 +0100
parents f4212fb5ecb0
children ee0644a26e30
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Wed Mar 19 17:52:40 2008 +0100
+++ b/MoinMoin/action/AttachFile.py	Wed Mar 19 18:14:38 2008 +0100
@@ -951,8 +951,8 @@
 
     mt = wikiutil.MimeType(filename=filename)
 
-    # later on we can add svg too. (destinguishs if browser need a plugin in place)
-    if mt.major == 'image' and mt.minor in ('jpg', 'jpeg', 'png', 'gif'):
+    # destinguishs if browser need a plugin in place
+    if mt.major == 'image' and mt.minor in config.browser_supported_images:
         request.write('<img src="%s" alt="%s">' % (
             getAttachUrl(pagename, filename, request, escaped=1),
             wikiutil.escape(filename, 1)))