changeset 2917:093ffb70b26f

fix email notification bug
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sun, 28 Oct 2007 20:51:06 +0100
parents 06547d7df727
children 404b1887af6c
files MoinMoin/events/emailnotify.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/events/emailnotify.py	Sun Oct 28 20:46:53 2007 +0100
+++ b/MoinMoin/events/emailnotify.py	Sun Oct 28 20:51:06 2007 +0100
@@ -33,7 +33,7 @@
 
     """
     _ = request.getText
-    body = notification.page_change_message("page_changed", request, page, email_lang, comment=comment, revisions=revisions)
+    change = notification.page_change_message("page_changed", request, page, email_lang, comment=comment, revisions=revisions)
 
     subject = _('[%(sitename)s] %(trivial)sUpdate of "%(pagename)s" by %(username)s', formatted=False) % {
             'trivial': (trivial and _("Trivial ", formatted=False)) or "",
@@ -42,7 +42,7 @@
             'username': page.uid_override or user.getUserIdentification(request),
         }
 
-    return {'subject': subject, 'body': body}
+    return {'subject': subject, 'body': change['text']}
 
 
 def send_notification(request, from_address, emails, data):