mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
다국어 text를 가져올때 trim()을 시행하여 개행문자를 제거
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2896 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
502e78cffd
commit
a1d88500ff
1 changed files with 1 additions and 0 deletions
|
|
@ -78,6 +78,7 @@
|
|||
$accept_lang = strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
foreach($langs as $val) {
|
||||
list($lang_prefix, $lang_text) = explode(',',$val);
|
||||
$lang_text = trim($lang_text);
|
||||
$lang_supported[$lang_prefix] = $lang_text;
|
||||
if(!$this->lang_type && ereg($lang_prefix, strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']))) {
|
||||
$this->lang_type = $lang_prefix;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue