changeset 1581:cd904ef15a0d

Fixed broken diff link in the e-mail notification.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sat, 23 Sep 2006 23:58:11 +0200
parents 1393f9e111f4
children b8b3565887ac
files MoinMoin/PageEditor.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Wed Sep 20 15:08:47 2006 +0200
+++ b/MoinMoin/PageEditor.py	Sat Sep 23 23:58:11 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"