Changeset 1583

Show
Ignore:
Timestamp:
09/15/06 22:36:49 (2 years ago)
Author:
mbonetti
Message:

this is better

Location:
trunk/gregarius
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/cls/l10n.php

    r1580 r1583  
    3535    var $locale; 
    3636     
    37     function RSSl10n($locale) { 
     37    function RSSl10n() { 
    3838        $this -> locale = preg_replace('#[^a-zA-Z_]#','',$this -> __detectUserLang()); 
    3939        if (function_exists('version_compare') && version_compare("4.3.0",PHP_VERSION, "<=") && preg_match('#([a-z]{2})_([A-Z]{2})#',$this -> locale,$m)) { 
  • trunk/gregarius/init.php

    r1582 r1583  
    117117 
    118118require_once('cls/l10n.php'); 
    119 $GLOBALS['rssl10n'] = new RSSl10n(null); 
     119$GLOBALS['rssl10n'] = new RSSl10n(); 
    120120$lang = $GLOBALS['rssl10n']->getLocale(); 
    121121_pf('done');