changeset 3154:c9ff5a31b5cd

fix some Page object theme.msg_add() calls
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sat, 01 Mar 2008 12:57:24 +0100
parents 5a71d373fe8f
children 7dd36ca5f4b3
files MoinMoin/Page.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Fri Feb 29 16:29:12 2008 +0200
+++ b/MoinMoin/Page.py	Sat Mar 01 12:57:24 2008 +0100
@@ -1113,21 +1113,21 @@
             # send the page header
             if self.default_formatter:
                 if self.rev:
-                    request.theme.add_msg("<strong>%s</strong><br>%s" % (
+                    request.theme.add_msg("<strong>%s</strong><br>" % (
                         _('Revision %(rev)d as of %(date)s') % {
                             'rev': self.rev,
                             'date': self.mtime_printable(request)
-                        }, "info"))
+                        }), "info")
 
                 # This redirect message is very annoying.
                 # Less annoying now without the warning sign.
                 if 'redirect' in request.form:
                     redir = request.form['redirect'][0]
-                    request.theme.add_msg('<strong>%s</strong><br>%s' % (
+                    request.theme.add_msg('<strong>%s</strong><br>' % (
                         _('Redirected from page "%(page)s"') % {'page':
                             wikiutil.link_tag(request, wikiutil.quoteWikinameURL(redir) + "?action=show", self.formatter.text(redir))}), "info")
                 if 'redirect' in pi:
-                    request.theme.add_msg('<strong>%s</strong><br>%s' % (
+                    request.theme.add_msg('<strong>%s</strong><br>' % (
                         _('This page redirects to page "%(page)s"') % {'page': wikiutil.escape(pi['redirect'])}), "info")
 
                 # Page trail