diff MoinMoin/theme/__init__.py @ 3058:f48d46b39364

fix MoinMoinBugs/SubscribeAndUnsubscribeShareSameUrl (thanks to Federico Lorenzi) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 21 Feb 2008 20:37:32 +0100
parents d2e9afd64276
children 036fc4dce2ee
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Thu Feb 21 20:06:02 2008 +0100
+++ b/MoinMoin/theme/__init__.py	Thu Feb 21 20:37:32 2008 +0100
@@ -1230,10 +1230,10 @@
 
         _ = self.request.getText
         if self.request.user.isSubscribedTo([page.page_name]):
-            text = _("Unsubscribe", formatted=False)
+            action, text = 'unsubscribe', _("Unsubscribe", formatted=False)
         else:
-            text = _("Subscribe", formatted=False)
-        return page.link_to(self.request, text=text, querystr={'action': 'subscribe'}, css_class='nbsubscribe', rel='nofollow')
+            action, text = 'subscribe', _("Subscribe", formatted=False)
+        return page.link_to(self.request, text=text, querystr={'action': action}, css_class='nbsubscribe', rel='nofollow')
 
     def quicklinkLink(self, page):
         """ Return add/remove quicklink link