Changeset 134 for trunk/admin/common.php


Ignore:
Timestamp:
2006-09-04T14:05:19+02:00 (8 years ago)
Author:
moo
Message:

fix 2nd lang file detecting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/common.php

    r125 r134  
    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.