Ignore:
Timestamp:
01/05/09 17:43:10 (15 years ago)
Author:
niltonneto
Message:

resolve #382

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/load_lang.php

    r2 r566  
    1414                } 
    1515        } 
    16         $script  = "array_lang[0] = new Array();"; 
    17         $script .= "array_lang[1] = new Array();";               
    18         $i = 0; 
    19         foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) {             
    20                 $script .= "array_lang[0][".$i."] = '".str_replace("'","\'",strtolower($key))."';";              
    21                 $script .= "array_lang[1][".$i."] = '".str_replace("'","\'",$value)."';"; 
    22                 $i++;                                    
    23         } 
     16        $script  = "array_lang = new Array();"; 
     17        foreach($_SESSION['phpgw_info']['expressomail']['lang'] as $key => $value) 
     18                $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; 
    2419        echo $script; 
    2520?> 
Note: See TracChangeset for help on using the changeset viewer.