diff --git a/src/tools/common/template.py b/src/tools/common/template.py index 683e4690..42782d66 100644 --- a/src/tools/common/template.py +++ b/src/tools/common/template.py @@ -299,12 +299,12 @@ class Renderer(object): def getThemeData(self, template_path): """return template data got from template_path - @return tuple(unicde, unicode, bool): + @return tuple(unicode, unicode, bool): path_elems: elements of the path theme: theme of the page is_default: True if the theme is the default theme """ - path_elems = template_path.split(u'/') + path_elems = [os.path.splitext(p)[0] for p in template_path.split(u'/')] theme = path_elems.pop(0) is_default = theme == C.TEMPLATE_THEME_DEFAULT return (path_elems, theme, is_default)