projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14ac2c8
)
HTML/FlexyFramework.php
author
edward
<edward@roojs.com>
Tue, 17 Oct 2017 09:59:45 +0000
(17:59 +0800)
committer
edward
<edward@roojs.com>
Tue, 17 Oct 2017 09:59:45 +0000
(17:59 +0800)
HTML/FlexyFramework.php
patch
|
blob
|
history
diff --git
a/HTML/FlexyFramework.php
b/HTML/FlexyFramework.php
index
ea760a8
..
0f13430
100755
(executable)
--- a/
HTML/FlexyFramework.php
+++ b/
HTML/FlexyFramework.php
@@
-352,7
+352,21
@@
class HTML_FlexyFramework {
return;
}
- $test = $this->parseDefaultLanguage($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
+ $default = $cfg['default'];
+
+ if(!empty($_SERVER["HTTP_ACCEPT_LANGUAGE"])){
+
+ $brower_langs = explode(",", $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
+
+ $langs = array();
+
+ foreach ($brower_langs as $bl) {
+ $langs[] = preg_replace('/;(.*)/', '', $bl);
+ }
+
+
+
+ }
$cfg = $this->languages;