From f14bfeb123b5ef0c9f02ac14e123581837f51c65 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Thu, 13 Jan 2011 12:45:18 +0100 Subject: [PATCH] plugins/hierarchy: fix get_recently() after last changes --- plugins/hierarchy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/hierarchy.py b/plugins/hierarchy.py index 01994ac..9157556 100644 --- a/plugins/hierarchy.py +++ b/plugins/hierarchy.py @@ -208,9 +208,9 @@ def get_recently(page=None, max_items=10): def addPage(res, page): #print "page:", page res.append( (page, get_link_from(orig_page, page)) ) - if _childs.has_key(page.title): - for c in _childs[page.title]: - addPage(res, get_file_for(c[1])) + if _childs.has_key(page): + for c in _childs[page]: + addPage(res, c[1]) addPage(res, orig_page) res.sort(cmp = lambda x,y: cmp(y[0].mtime, x[0].mtime)) return res[:max_items] -- 2.39.2