changeset 2044:0ad73056b518

merged
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Mar 2013 01:54:32 +0100
parents e02cf4c80881 (current diff) 423d8d791cc9 (diff)
children b955b06ac0cf
files
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Thu Mar 21 08:18:46 2013 -0700
+++ b/MoinMoin/themes/__init__.py	Sat Mar 23 01:54:32 2013 +0100
@@ -210,8 +210,12 @@
         """
         current = item_name
         # Process config navi_bar
-        items = [(cls, url_for(endpoint, **args), link_text, title)
-                 for cls, endpoint, args, link_text, title in self.cfg.navi_bar]
+        items = []
+        for cls, endpoint, args, link_text, title in self.cfg.navi_bar:
+            if endpoint == "frontend.show_root":
+                endpoint = "frontend.show_item"
+                args['item_name'] = app.cfg.item_root
+            items.append((cls, url_for(endpoint, **args), link_text, title))
 
         # Add user links to wiki links.
         for text in self.user.quicklinks: