@@ 69-79 (lines=11) @@ | ||
66 | if (preg_match_all($re, $acceptLanguage, $matches)) { |
|
67 | $otherlangs=array(); |
|
68 | $otherq=false; |
|
69 | foreach ($matches as $match) { |
|
70 | if (!isset($match[2])) { |
|
71 | $match[2]=1; |
|
72 | } |
|
73 | if ($match[1]=="*") { |
|
74 | $otherq=$match[2]; |
|
75 | } else if ($nls->available[$match[1]]) { |
|
76 | $otherlangs[]=$match[1]; |
|
77 | $nls->accepted[$match[1]]=$match[2]; |
|
78 | } |
|
79 | } |
|
80 | if ($otherq !== false) { |
|
81 | $otherlangs=array_diff(array_keys($nls->available), $otherlangs); |
|
82 | foreach ($otherlangs as $lang) { |
@@ 810-820 (lines=11) @@ | ||
807 | $ARCurrent->acceptlang=array(); |
|
808 | $otherlangs=array(); |
|
809 | $otherq=false; |
|
810 | foreach ($regs as $reg) { |
|
811 | if (!isset($reg[2])) { |
|
812 | $reg[2]=1; |
|
813 | } |
|
814 | if ($reg[1]=="*") { |
|
815 | $otherq=$reg[2]; |
|
816 | } else if ($AR->nls->list[$reg[1]]) { |
|
817 | $otherlangs[]=$reg[1]; |
|
818 | $ARCurrent->acceptlang[$reg[1]]=$reg[2]; |
|
819 | } |
|
820 | } |
|
821 | if ($otherq !== false) { |
|
822 | $otherlangs=array_diff(array_keys($AR->nls->list), $otherlangs); |
|
823 | foreach ($otherlangs as $lang) { |