Ignore:
Timestamp:
10 Mar 2012, 09:45:25 (13 years ago)
Author:
Henrik Bettermann
Message:

In some cases we do no longer need to know the fallback language (= portal language) because the fallback language is already set in the cookie when accessing Kofa for the first time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r7819 r7833  
    290290    @property
    291291    def frontpage(self):
    292         portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    293         lang = self.request.cookies.get('kofa.language', portal_language)
     292        lang = self.request.cookies.get('kofa.language')
    294293        html = self.context['configuration'].frontpage_dict.get(lang,'')
    295294        if html =='':
     295            portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    296296            html = self.context[
    297297                'configuration'].frontpage_dict.get(portal_language,'')
Note: See TracChangeset for help on using the changeset viewer.