diff MoinMoin/theme/__init__.py @ 182:10e033440008

fixed theme title for 'Add spaces to displayed wiki names' setting imported from: moin--main--1.5--patch-184
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 01 Nov 2005 19:52:11 +0000
parents 51bde0757167
children b1d744e2fd29
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Tue Nov 01 18:57:39 2005 +0000
+++ b/MoinMoin/theme/__init__.py	Tue Nov 01 19:52:11 2005 +0000
@@ -171,9 +171,10 @@
         """
         _ = self.request.getText
         content = []
-        if d['title_link']:
+        if d['title_link']: # having a link means we have a (linked) pagename ONLY as title, not a message title
+                            # XXX this method is rather ugly and should be improved
             curpage = ''
-            segments = d['title_text'].split('/')
+            segments = d['page_name'].split('/') # was: title_text
             for s in segments[:-1]:
                 curpage += s
                 content.append("<li>%s</li>" % Page(self.request, curpage).link_to(self.request, s))