changeset 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 a7bf8ff3f517
children d2352196da6a
files MoinMoin/action/newpage.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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