Ignore:
Timestamp:
01/07/09 15:20:18 (16 years ago)
Author:
niltonneto
Message:

Impĺementações feitas pelo desenvolvedor. (Alexandre Muller

File:
1 edited

Legend:

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

    r420 r573  
    1414                } 
    1515        } 
    16         $script  = "array_lang[0] = new Array();"; 
    17         $script .= "array_lang[1] = new Array();";               
    18         $i = 0; 
    19         foreach($_SESSION['phpgw_info']['calendar']['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']['calendar']['lang'] as $key => $value) 
     18                $script .= "array_lang['".str_replace("'","\'",strtolower($key))."'] = '".str_replace("'","\'",$value)."';\n"; 
    2419        echo $script; 
     20 
    2521?> 
Note: See TracChangeset for help on using the changeset viewer.