diff MoinMoin/PageEditor.py @ 3721:497c47e00539

revert 384135a7bb0a ("PageEditor.renamePage: bugfix added missing comment var") The comment isn't really missing, it may be empty if the user didn't provide one and in that case if you want to know what it was renamed from you have to look at the 'extra' field in the edit log, RecentChanges does that and displays "#01 Renamed from 'test'." or similar.
author Johannes Berg <johannes AT sipsolutions DOT net>
date Wed, 18 Jun 2008 15:13:37 +0200
parents 78f1b1c0affb
children fd63e84632df
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Tue Jun 17 18:38:44 2008 +0200
+++ b/MoinMoin/PageEditor.py	Wed Jun 18 15:13:37 2008 +0200
@@ -620,8 +620,6 @@
         try:
             os.rename(oldpath, newpath)
             self.error = None
-            if not comment:
-                comment = u"## page was renamed from %s" % self.page_name
             # Save page text with a comment about the old name
             savetext = u"## page was renamed from %s\n%s" % (self.page_name, savetext)
             newpage.saveText(savetext, 0, comment=comment, extra=self.page_name, action='SAVE/RENAME', notify=False)