changeset 5229:eb786205dbdd

SlideShow action: fix send_page call, use theme.add_msg
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 28 Oct 2009 21:27:26 +0100
parents 6aa48433a5f4
children abfb77c0dea9
files MoinMoin/action/SlideShow.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/SlideShow.py	Wed Oct 28 21:14:17 2009 +0100
+++ b/MoinMoin/action/SlideShow.py	Wed Oct 28 21:27:26 2009 +0100
@@ -161,7 +161,8 @@
             self.request.setContentLanguage(language)
             self.request.write(self.template % self)
         except Error, err:
-            self.page.send_page(self.request, msg=unicode(err))
+            self.request.theme.add_msg(unicode(err), "error")
+            self.page.send_page()
 
     # Private ----------------------------------------------------------------