@@ -46,9 +46,9 @@ |
||
46 | 46 | if($header === null) { |
47 | 47 | return null; |
48 | 48 | } |
49 | - $s = strtolower($header); // case insensitive |
|
50 | - $s = strtr($s, '_', '-'); // cs_CZ means cs-CZ |
|
51 | - rsort($langs); // first more specific |
|
49 | + $s = strtolower($header); // case insensitive |
|
50 | + $s = strtr($s, '_', '-'); // cs_CZ means cs-CZ |
|
51 | + rsort($langs); // first more specific |
|
52 | 52 | $pattern = ')(?:-[^\s,;=]+)?\s*(?:;\s*q=([0-9.]+))?#'; |
53 | 53 | preg_match_all('#(' . implode('|', $langs) . $pattern, $s, $matches); |
54 | 54 | if(!isset($matches[0])) { |