changeset 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 aae5351b8a1e
children 0259bd2d0777
files MoinMoin/
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/	Tue Jun 17 18:38:44 2008 +0200
+++ b/MoinMoin/	Wed Jun 18 15:13:37 2008 +0200
@@ -620,8 +620,6 @@
             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)