Changeset 125 for trunk/admin/common.php


Ignore:
Timestamp:
2006-09-03T04:20:24+02:00 (8 years ago)
Author:
moo
Message:

sync admin scripts with coverager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/common.php

    r123 r125  
    3333            $file = get_language_file_ex($name, $l, $s); 
    3434            if (isset($file)) { 
     35                $lang = $l; 
    3536                break; 
    3637            } 
    3738            if (strpos($l, '-') !== false) { 
    38                 $l = strtok($l, '-'); 
    39                 $file = get_language_file_ex($name, $l, $s); 
     39                $ll = strtok($l, '-'); 
     40                $file = get_language_file_ex($name, $ll, $s); 
    4041                if (isset($file)) { 
     42                    $lang = $l; 
    4143                    break; 
    4244                } 
     
    6769 
    6870include(get_language_file("common")); 
     71if (!isset($lang)) { 
     72    $lang = 'en-us'; 
     73} 
    6974 
    7075?> 
Note: See TracChangeset for help on using the changeset viewer.