Skip to content

Commit

Permalink
allows the menus to work under non i18n conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
digi604 committed Apr 14, 2010
1 parent 135fdee commit 6122aa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion menus/menu_pool.py
Expand Up @@ -4,6 +4,7 @@
import copy
from django.core.cache import cache
import pickle
from django.utils.translation import get_language

class MenuPool(object):
def __init__(self):
Expand Down Expand Up @@ -41,7 +42,7 @@ def register_modifier(self, modifier_class):


def _build_nodes(self, request, site_id):
lang = request.LANGUAGE_CODE
lang = get_language()
key = "menu_nodes_%s_%s" % (lang, site_id)
self.cache_keys.add(key)
cached_nodes = cache.get(key, None)
Expand Down

0 comments on commit 6122aa2

Please sign in to comment.