From 2502dfb2187e026c02c43a8c4b0b43c98e35e55a Mon Sep 17 00:00:00 2001 From: boyska Date: Tue, 20 Dec 2016 18:41:03 +0100 Subject: [PATCH] fix langmenu with empty langs --- plugins/langmenu.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/langmenu.py b/plugins/langmenu.py index ccf865a..a2d371c 100644 --- a/plugins/langmenu.py +++ b/plugins/langmenu.py @@ -32,11 +32,8 @@ def add_localmenuitems(generator): for page in menu[lang]: menuitems[lang].append((page.title, page.url)) - print(menuitems['en']) - print(menuitems['it']) generator.context['LOCALMENUITEMS'] = menuitems def register(): signals.page_generator_finalized.connect(add_localmenuitems) - pass