changeset 3411:b9b958b46ed1

theme.__init__: bugfix for searchform and actionsMenu
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 22 Mar 2008 13:49:57 +0100
parents 81b8a5bb8711
children 91d38a790d8e
files MoinMoin/theme/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sat Mar 22 13:43:21 2008 +0100
+++ b/MoinMoin/theme/__init__.py	Sat Mar 22 13:49:57 2008 +0100
@@ -738,7 +738,7 @@
             'search_full_label': _('Text'),
             'search_title_label': _('Titles'),
             'baseurl': self.request.getScriptname(),
-            'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name),
+            'pagename_quoted': wikiutil.quoteWikinameURL(d['page'].page_name),
             }
         d.update(updates)
 
@@ -1007,7 +1007,7 @@
             'rev_field': rev and '<input type="hidden" name="rev" value="%d">' % rev or '',
             'do_button': _("Do"),
             'baseurl': self.request.getScriptname(),
-            'pagename_quoted': wikiutil.quoteWikinameURL(self.request.page.page_name),
+            'pagename_quoted': wikiutil.quoteWikinameURL(page.page_name),
             }
         html = '''
 <form class="actionsmenu" method="GET" action="%(baseurl)s/%(pagename_quoted)s">