changeset 2234:33c700bfce29

Solves issue #12.
author Ashutosh Singla <ashu1461@gmail.com>
date Sun, 04 Aug 2013 01:02:48 +0530
parents f1c374ca25ac
children 9e0bbeb7c5c3
files MoinMoin/themes/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Aug 04 00:58:37 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Sun Aug 04 01:02:48 2013 +0530
@@ -98,7 +98,7 @@
         breadcrumbs.append((CompositeName(fq_segment, fq_current, False)))
         item_name = fqname.value
         if not item_name:
-            return breadcrumbs
+            return breadcrumbs if namespace else []
         for segment in item_name.split('/'):
             current_item += segment
             fq_current = CompositeName(namespace, NAME_EXACT, current_item)