diff MoinMoin/theme/__init__.py @ 2862:8c1d40768df7

gedit formatter/converter: fix links/transclusion (suppressing default alt texts needs more work)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 23 Sep 2007 23:11:18 +0200
parents bda6fe7c015b
children 49b9e807a51d
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sat Sep 22 22:50:10 2007 +0200
+++ b/MoinMoin/theme/__init__.py	Sun Sep 23 23:11:18 2007 +0200
@@ -506,7 +506,7 @@
 
         return alt, self.img_url(icon), w, h
 
-    def make_icon(self, icon, vars=None):
+    def make_icon(self, icon, vars=None, **kw):
         """
         This is the central routine for making <img> tags for icons!
         All icons stuff except the top left logo and search field icons are
@@ -525,7 +525,7 @@
         except KeyError, err:
             alt = 'KeyError: %s' % str(err)
         alt = self.request.getText(alt, formatted=False)
-        tag = self.request.formatter.image(src=img, alt=alt, width=w, height=h)
+        tag = self.request.formatter.image(src=img, alt=alt, width=w, height=h, **kw)
         return tag
 
     def make_iconlink(self, which, d):