changeset 121:e61a09408702

fix name error in user.subscribe imported from: moin--main--1.5--patch-123
author Nir Soffer <nirs@freeshell.org>
date Wed, 19 Oct 2005 22:01:59 +0000
parents a59ea3ccc040
children f5f443df60cb
files MoinMoin/user.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Tue Oct 18 18:40:02 2005 +0000
+++ b/MoinMoin/user.py	Wed Oct 19 22:01:59 2005 +0000
@@ -650,10 +650,10 @@
         @return: if page was subscribed
         """        
         if self._cfg.interwikiname:
-            interWikiName = self._interWikiName(pagename)
+            pagename = self._interWikiName(pagename)
         
-        if interWikiName not in self.subscribed_pages:
-            self.subscribed_pages.append(interWikiName)
+        if pagename not in self.subscribed_pages:
+            self.subscribed_pages.append(pagename)
             self.save()
             return True