From 34d24de2f004df6ab096f4165eb31e16e70e76bb Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 11 Jan 2007 07:05:28 +0000 Subject: change DomDocument::loadXml to use instance method (static method causes E_STRICT error). --- framework/I18N/core/HTTPNegotiator.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'framework/I18N') diff --git a/framework/I18N/core/HTTPNegotiator.php b/framework/I18N/core/HTTPNegotiator.php index f5eb876c..31639a99 100644 --- a/framework/I18N/core/HTTPNegotiator.php +++ b/framework/I18N/core/HTTPNegotiator.php @@ -62,6 +62,8 @@ class HTTPNegotiator //$basedir = CultureInfo::dataDir(); //$ext = CultureInfo::fileExt(); + $info = new CultureInfo(); + foreach(explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $lang) { // Cut off any q-value that might come after a semi-colon @@ -91,7 +93,9 @@ class HTTPNegotiator } } - if(CultureInfo::validCulture($lang)) + + + if($info->validCulture($lang)) $this->languages[] = $lang; } -- cgit v1.2.3