Permalink
Browse files

bugfix - plone site cannot adapt to ITranslationGraph

  • Loading branch information...
1 parent 7231613 commit 5cbbfc070071db5332c5854a93e4f741a936f690 @tmog tmog committed Jan 16, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/collective/multilingual/browser/menu.py
@@ -39,7 +39,6 @@ def getTranslationActionItems(context, request):
use_parent = False
graph = ITranslationGraph(context)
- parent_graph = ITranslationGraph(parent)
current_lang = getattr(aq_base(context), "language", "")
lt = getToolByName(context, 'portal_languages')
@@ -51,7 +50,7 @@ def getTranslationActionItems(context, request):
site_url = site.absolute_url()
if use_parent:
- lang_items = parent_graph.getNearestTranslations()
+ lang_items = ITranslationGraph(parent).getNearestTranslations()
else:
lang_items = graph.getNearestTranslations()

0 comments on commit 5cbbfc0

Please sign in to comment.