From: Holger Schurig Date: Thu, 13 Jan 2011 11:45:18 +0000 (+0100) Subject: plugins/hierarchy: fix get_recently() after last changes X-Git-Url: https://oss.titaniummirror.com/gitweb?p=webber.git;a=commitdiff_plain;h=f14bfeb123b5ef0c9f02ac14e123581837f51c65 plugins/hierarchy: fix get_recently() after last changes --- 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]