changeset 1583:b8b3565887ac

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 25 Sep 2006 11:03:14 +0200
parents f37b49b6313d (current diff) cd904ef15a0d (diff)
children 1a1d6e0fe14f
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Mon Sep 25 11:01:54 2006 +0200
+++ b/MoinMoin/PageEditor.py	Mon Sep 25 11:03:14 2006 +0200
@@ -580,7 +580,7 @@
         @param comment: editor's comment given when saving the page
         @param emails: list of email addresses
         @param email_lang: language of emails
-        @param revisions: revisions of this page
+        @param revisions: revisions of this page (newest first!)
         @param trivial: the change is marked as trivial
         @rtype: int
         @return: sendmail result
@@ -589,7 +589,7 @@
 
         pagelink = self.request.getQualifiedURL(self.url(self.request, relative=False))
         if len(revisions) >= 2:
-            pagelink += "?action=diff&rev2=%i&rev1=%i" % tuple(revisions[-2:])
+            pagelink += "?action=diff&rev2=%i&rev1=%i" % tuple(revisions[:2])
 
 
         mailBody = _("Dear Wiki user,\n\n"