diff MoinMoin/action/newpage.py @ 3178:948aac85d4d3

newpage action: fix error handler
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 03 Mar 2008 02:29:11 +0100
parents ba14d391c2ba
children a739558ca3dc
line wrap: on
line diff
--- a/MoinMoin/action/newpage.py	Mon Mar 03 02:27:00 2008 +0100
+++ b/MoinMoin/action/newpage.py	Mon Mar 03 02:29:11 2008 +0100
@@ -73,7 +73,7 @@
         if error:
             # Send back to the page you came from, with an error msg
             page = Page(self.request, self.referrer)
-            request.theme.add_msg(error, "error")
+            self.request.theme.add_msg(error, "error")
             page.send_page()
         else:
             # Redirect to new page using edit action. No error checking