changeset 2987:c817a9c0d0e5

navi_bar: highlight correct tab for the current page for i18ned system pages (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 16:05:36 +0100
parents d6fb846dc73c
children 1c16c1c3349e
files MoinMoin/theme/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sun Jan 06 16:04:20 2008 +0100
+++ b/MoinMoin/theme/__init__.py	Sun Jan 06 16:05:36 2008 +0100
@@ -369,6 +369,8 @@
         else:
             page = Page(request, pagename)
 
+        pagename = page.page_name # can be different, due to i18n
+
         if not title:
             title = page.split_title()
             title = self.shortenPagename(title)