diff MoinMoin/formatter/text_html.py @ 734:bf2435e61f97

moved smileys from MoinMoin.config to theme, fixed smiley text_python caching bug
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 02 Jun 2006 16:58:56 +0200
parents 19ef5f9fff84
children 902c34d95085
line wrap: on
line diff
--- a/MoinMoin/formatter/text_html.py	Wed May 31 12:04:43 2006 +0200
+++ b/MoinMoin/formatter/text_html.py	Fri Jun 02 16:58:56 2006 +0200
@@ -1055,12 +1055,7 @@
     def icon(self, type):
         return self.request.theme.make_icon(type)
 
-    def smiley(self, text):
-        w, h, b, img = config.smileys[text.strip()]
-        href = img
-        if not href.startswith('/'):
-            href = self.request.theme.img_url(img)
-        return self.image(src=href, alt=text, width=str(w), height=str(h))
+    smiley = icon
 
     def image(self, src=None, **kw):
         """Creates an inline image with an <img> element.