changeset 2996:6a1b18869fe8

fix for icon bar: do not modify cfg.page_icons_table (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 17:08:31 +0100
parents 8d4d5795f1f2
children c5cc1a0db4b2
files MoinMoin/theme/__init__.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sun Jan 06 16:57:28 2008 +0100
+++ b/MoinMoin/theme/__init__.py	Sun Jan 06 17:08:31 2008 +0100
@@ -541,16 +541,18 @@
         @rtype: string
         @return: html link tag
         """
+        qs = {}
         querystr, title, icon = self.cfg.page_icons_table[which]
+        qs.update(querystr) # do not modify the querystr dict in the cfg!
         d['title'] = title % d
         d['i18ntitle'] = self.request.getText(d['title'], formatted=False)
         img_src = self.make_icon(icon, d)
         rev = d['rev']
         if rev and which in ['raw', 'print', ]:
-            querystr['rev'] = str(rev)
+            qs['rev'] = str(rev)
         attrs = {'rel': 'nofollow', 'title': d['i18ntitle'], }
         page = d['page']
-        return page.link_to_raw(self.request, text=img_src, querystr=querystr, **attrs)
+        return page.link_to_raw(self.request, text=img_src, querystr=qs, **attrs)
 
     def msg(self, d):
         """ Assemble the msg display