Changeset adfe2d2 in git


Ignore:
Timestamp:
2006-09-04T12:05:19Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
6651fd8
Parents:
47e7def
Message:

fix 2nd lang file detecting

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@134 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/common.php

    r255ddf1 radfe2d2  
    2626    $s = strtolower($charset);
    2727    if (isset($lang)) {
    28         $file = get_language_file_ex($name, strtolower($lang), $s);
     28        $l = strtolower($lang);
     29        $file = get_language_file_ex($name, $l, $s);
     30        if (!isset($file)) {
     31            $l = strtok($l, '-');
     32            $file = get_language_file_ex($name, $l, $s);
     33        }
    2934    }
    3035    else if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
  • coverager/common.php

    re96f9d5 radfe2d2  
    2626    $s = strtolower($charset);
    2727    if (isset($lang)) {
    28         $file = get_language_file_ex($name, strtolower($lang), $s);
     28        $l = strtolower($lang);
     29        $file = get_language_file_ex($name, $l, $s);
     30        if (!isset($file)) {
     31            $l = strtok($l, '-');
     32            $file = get_language_file_ex($name, $l, $s);
     33        }
    2934    }
    3035    else if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
Note: See TracChangeset for help on using the changeset viewer.