1
0
Fork 0

fix langmenu with empty langs

This commit is contained in:
boyska 2016-12-20 18:41:03 +01:00
parent d263b1a916
commit 2502dfb218

View file

@ -32,11 +32,8 @@ def add_localmenuitems(generator):
for page in menu[lang]: for page in menu[lang]:
menuitems[lang].append((page.title, page.url)) menuitems[lang].append((page.title, page.url))
print(menuitems['en'])
print(menuitems['it'])
generator.context['LOCALMENUITEMS'] = menuitems generator.context['LOCALMENUITEMS'] = menuitems
def register(): def register():
signals.page_generator_finalized.connect(add_localmenuitems) signals.page_generator_finalized.connect(add_localmenuitems)
pass