changeset 34:556748b2f296

fix send_footer in PageAction to work with 1.5.x
author RadomirDopieralski
date Fri, 24 Oct 2008 13:32:08 +0000
parents fa8f6691c66f
children 9e72371f86d3
files PageActions.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/PageActions.py	Fri Oct 24 13:25:14 2008 +0000
+++ b/PageActions.py	Fri Oct 24 13:32:08 2008 +0000
@@ -33,7 +33,10 @@
 
     # End content and send footer
     request.write(request.formatter.endContent())
-    request.theme.send_footer(pagename)
+    try:
+        request.theme.send_footer(pagename)
+    except AttributeError:
+        wikiutil.send_footer(request, pagename)
 
 # Make a link to action
 def actionlink(request, action, title, comment=''):