Commit a1d539ef authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added support for static language selection only in web sites with support for...

Added support for static language selection only in web sites with support for default language and bug fix

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22333 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1d792c4d
......@@ -150,8 +150,12 @@ class WebSite(WebSection):
# as a language selection only if language_list
# was defined or set default language
if name in language_list:
request['AcceptLanguage'].set(name, 100)
if request.get('AcceptLanguage') is not None:
request['AcceptLanguage'].set(name, 100)
return self.asContext(id=name, title='', short_title='')
else:
if request.get('AcceptLanguage') is not None:
request['AcceptLanguage'].set(language_list[0], 80)
return PermanentURLMixIn._getExtensibleContent(self, request, name)
# Virtual Hosting Support
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment