svn commit: r658277 - /lenya/trunk/src/modules/navigation/java/src/org/apache/lenya/modules/navigation/BreadcrumbSelector.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Tue May 20 08:26:36 2008
New Revision: 658277

URL: http://svn.apache.org/viewvc?rev=658277&view=rev
Log:
Fixed path handling in breadcrumb selector.

Modified:
    lenya/trunk/src/modules/navigation/java/src/org/apache/lenya/modules/navigation/BreadcrumbSelector.java

Modified: lenya/trunk/src/modules/navigation/java/src/org/apache/lenya/modules/navigation/BreadcrumbSelector.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/navigation/java/src/org/apache/lenya/modules/navigation/BreadcrumbSelector.java?rev=658277&r1=658276&r2=658277&view=diff
==============================================================================
--- lenya/trunk/src/modules/navigation/java/src/org/apache/lenya/modules/navigation/BreadcrumbSelector.java (original)
+++ lenya/trunk/src/modules/navigation/java/src/org/apache/lenya/modules/navigation/BreadcrumbSelector.java Tue May 20 08:26:36 2008
@@ -38,8 +38,9 @@
         while (tokens.hasMoreTokens()) {
             String name = tokens.nextToken();
             currentPath.append("/").append(name);
-            if (site.contains(path)) {
-                SiteNode node = site.getNode(path);
+            String pathString = currentPath.toString();
+            if (site.contains(pathString)) {
+                SiteNode node = site.getNode(pathString);
                 generator.startNode(node);
                 generator.generateLink(node, lang);
                 generator.endNode(node);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.