Changeset 559

Show
Ignore:
Timestamp:
08/29/07 22:48:36 (1 year ago)
Author:
laurentj
Message:

changed parameters name in the configuration: defaultModule and defaultAction to startModule and startAction, defaultLocale to locale, defaultCharset to charset, defaultTimeZone to timeZone, defaultTheme to theme

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix-modules/junittests/classes/jhtmlrespreporter.class.php

    r504 r559  
    102102   function _htmlEntities($message) { 
    103103      global $gJConfig; 
    104       return htmlentities($message, ENT_COMPAT, $gJConfig->defaultCharset); 
     104      return htmlentities($message, ENT_COMPAT, $gJConfig->charset); 
    105105   } 
    106106} 
  • trunk/lib/jelix-modules/junittests/classes/jhtmlrespreporter.class.php

    r504 r559  
    102102   function _htmlEntities($message) { 
    103103      global $gJConfig; 
    104       return htmlentities($message, ENT_COMPAT, $gJConfig->defaultCharset); 
     104      return htmlentities($message, ENT_COMPAT, $gJConfig->charset); 
    105105   } 
    106106} 
  • trunk/lib/jelix-scripts/templates/var/config/cmdline/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
  • trunk/lib/jelix-scripts/templates/var/config/cmdline/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
  • trunk/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl

    r479 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultModule = "{$appname}" 
    5 defaultAction = "default_index" 
    6 defaultLocale = "fr_FR" 
    7 defaultCharset = "UTF-8" 
     4 
     5locale = "fr_FR" 
     6charset = "UTF-8" 
    87 
    98; see http://www.php.net/manual/en/timezones.php for supported values 
    10 defaultTimeZone = "Europe/Paris" 
     9timeZone = "Europe/Paris" 
    1110 
    1211checkTrustedModules = off 
     
    1817modulesPath = lib:jelix-modules/,app:modules/ 
    1918 
    20 dbProfils = dbprofils.ini.php 
    21  
    22 defaultTheme = default 
     19theme = default 
    2320 
    2421[plugins] 
  • trunk/lib/jelix-scripts/templates/var/config/defaultconfig.ini.php.tpl

    r479 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultModule = "{$appname}" 
    5 defaultAction = "default_index" 
    6 defaultLocale = "fr_FR" 
    7 defaultCharset = "UTF-8" 
     4 
     5locale = "fr_FR" 
     6charset = "UTF-8" 
    87 
    98; see http://www.php.net/manual/en/timezones.php for supported values 
    10 defaultTimeZone = "Europe/Paris" 
     9timeZone = "Europe/Paris" 
    1110 
    1211checkTrustedModules = off 
     
    1817modulesPath = lib:jelix-modules/,app:modules/ 
    1918 
    20 dbProfils = dbprofils.ini.php 
    21  
    22 defaultTheme = default 
     19theme = default 
    2320 
    2421[plugins] 
  • trunk/lib/jelix-scripts/templates/var/config/index/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
     6 
    57[plugins] 
    68;nom = nom_fichier_ini 
  • trunk/lib/jelix-scripts/templates/var/config/index/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
     6 
    57[plugins] 
    68;nom = nom_fichier_ini 
  • trunk/lib/jelix-scripts/templates/var/config/jsonrpc/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
    56 
    67[plugins] 
  • trunk/lib/jelix-scripts/templates/var/config/jsonrpc/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
    56 
    67[plugins] 
  • trunk/lib/jelix-scripts/templates/var/config/xmlrpc/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
    56 
    67[plugins] 
  • trunk/lib/jelix-scripts/templates/var/config/xmlrpc/config.ini.php.tpl

    r256 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultAction = "default_index" 
     4startModule = "{$appname}" 
     5startAction = "default_index" 
    56 
    67[plugins] 
  • trunk/lib/jelix/core-modules/jelix/controllers/help.cmdline.php

    r386 r559  
    3838        } else { 
    3939            if (!preg_match('/(?:([\w\.]+)~)/', $cmd_name)) { 
    40                 $cmd_name = $gJConfig->defaultModule.'~'.$cmd_name; 
     40                $cmd_name = $gJConfig->startModule.'~'.$cmd_name; 
    4141            } 
    4242            $selector = new jSelectorAct($cmd_name); 
  • trunk/lib/jelix/core-modules/jelix/controllers/help.cmdline.php

    r386 r559  
    3838        } else { 
    3939            if (!preg_match('/(?:([\w\.]+)~)/', $cmd_name)) { 
    40                 $cmd_name = $gJConfig->defaultModule.'~'.$cmd_name; 
     40                $cmd_name = $gJConfig->startModule.'~'.$cmd_name; 
    4141            } 
    4242            $selector = new jSelectorAct($cmd_name); 
  • trunk/lib/jelix/core/defaultconfig.ini.php

    r516 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultModule = "jelix" 
    5 defaultAction = "default_index" 
    6 defaultLocale = "fr_FR" 
    7 defaultCharset = "UTF-8" 
    8 defaultTimeZone = "Europe/Paris" 
     4startModule = "jelix" 
     5startAction = "default_index" 
     6locale = "fr_FR" 
     7charset = "UTF-8" 
     8timeZone = "Europe/Paris" 
    99 
    1010checkTrustedModules = off 
     
    1818dbProfils = dbprofils.ini.php 
    1919 
    20 defaultTheme = default 
     20theme = default 
    2121use_error_handler = on 
    2222shared_session = off 
  • trunk/lib/jelix/core/defaultconfig.ini.php

    r516 r559  
    22;for security reasons , don't remove or modify the first line 
    33 
    4 defaultModule = "jelix" 
    5 defaultAction = "default_index" 
    6 defaultLocale = "fr_FR" 
    7 defaultCharset = "UTF-8" 
    8 defaultTimeZone = "Europe/Paris" 
     4startModule = "jelix" 
     5startAction = "default_index" 
     6locale = "fr_FR" 
     7charset = "UTF-8" 
     8timeZone = "Europe/Paris" 
    99 
    1010checkTrustedModules = off 
     
    1818dbProfils = dbprofils.ini.php 
    1919 
    20 defaultTheme = default 
     20theme = default 
    2121use_error_handler = on 
    2222shared_session = off 
  • trunk/lib/jelix/core/jConfigCompiler.class.php

    r516 r559  
    4141        } 
    4242        $config->isWindows = (substr(PHP_OS,0,3) == 'WIN'); 
    43         if(trim( $config->defaultAction) == '') 
    44              $config->defaultAction = '_'; 
     43        if(trim( $config->startAction) == '') 
     44             $config->startAction = '_'; 
    4545 
    4646        $config->_allBasePath = array(); 
     
    6666 
    6767 
    68         /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config->defaultLocale,$m)){ 
     68        /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config->locale,$m)){ 
    6969            if(!isset($m[2])){ 
    7070                $m[2] = $m[1]; 
     
    7272            $config->defaultLang = strtolower($m[1]); 
    7373            $config->defaultCountry = strtoupper($m[2]); 
    74             $config->defaultLocale = $config->defaultLang.'_'.$config->defaultCountry; 
    75         }else{ 
    76             die("Syntax error in the defaultLocale parameter in Jelix config file $configFile !"); 
     74            $config->locale = $config->defaultLang.'_'.$config->defaultCountry; 
     75        }else{ 
     76            die("Syntax error in the locale parameter in Jelix config file $configFile !"); 
    7777        }*/ 
    7878#else 
     
    9191        } 
    9292        $config['isWindows'] = (substr(PHP_OS,0,3) == 'WIN'); 
    93         if(trim( $config['defaultAction']) == '') 
    94              $config['defaultAction'] = '_'; 
     93        if(trim( $config['startAction']) == '') 
     94             $config['startAction'] = '_'; 
    9595 
    9696        $config['_allBasePath'] = array(); 
     
    114114            $config['urlengine']['jelixWWWPath'] = $path.$config['urlengine']['jelixWWWPath']; 
    115115 
    116         /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config['defaultLocale'],$m)){ 
     116        /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config['locale'],$m)){ 
    117117            if(!isset($m[2])){ 
    118118                $m[2] = $m[1]; 
     
    120120            $config['defaultLang'] = strtolower($m[1]); 
    121121            $config['defaultCountry'] = strtoupper($m[2]); 
    122             $config['defaultLocale'] = $config['defaultLang'].'_'.$config['defaultCountry']; 
    123         }else{ 
    124             die("Syntax error in the defaultLocale parameter in Jelix config file $configFile !"); 
     122            $config['locale'] = $config['defaultLang'].'_'.$config['defaultCountry']; 
     123        }else{ 
     124            die("Syntax error in the locale parameter in Jelix config file $configFile !"); 
    125125        }*/ 
    126126#endif 
  • trunk/lib/jelix/core/jConfigCompiler.class.php

    r516 r559  
    4141        } 
    4242        $config->isWindows = (substr(PHP_OS,0,3) == 'WIN'); 
    43         if(trim( $config->defaultAction) == '') 
    44              $config->defaultAction = '_'; 
     43        if(trim( $config->startAction) == '') 
     44             $config->startAction = '_'; 
    4545 
    4646        $config->_allBasePath = array(); 
     
    6666 
    6767 
    68         /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config->defaultLocale,$m)){ 
     68        /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config->locale,$m)){ 
    6969            if(!isset($m[2])){ 
    7070                $m[2] = $m[1]; 
     
    7272            $config->defaultLang = strtolower($m[1]); 
    7373            $config->defaultCountry = strtoupper($m[2]); 
    74             $config->defaultLocale = $config->defaultLang.'_'.$config->defaultCountry; 
    75         }else{ 
    76             die("Syntax error in the defaultLocale parameter in Jelix config file $configFile !"); 
     74            $config->locale = $config->defaultLang.'_'.$config->defaultCountry; 
     75        }else{ 
     76            die("Syntax error in the locale parameter in Jelix config file $configFile !"); 
    7777        }*/ 
    7878#else 
     
    9191        } 
    9292        $config['isWindows'] = (substr(PHP_OS,0,3) == 'WIN'); 
    93         if(trim( $config['defaultAction']) == '') 
    94              $config['defaultAction'] = '_'; 
     93        if(trim( $config['startAction']) == '') 
     94             $config['startAction'] = '_'; 
    9595 
    9696        $config['_allBasePath'] = array(); 
     
    114114            $config['urlengine']['jelixWWWPath'] = $path.$config['urlengine']['jelixWWWPath']; 
    115115 
    116         /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config['defaultLocale'],$m)){ 
     116        /*if(preg_match("/^([a-zA-Z]{2})(?:_([a-zA-Z]{2}))?$/",$config['locale'],$m)){ 
    117117            if(!isset($m[2])){ 
    118118                $m[2] = $m[1]; 
     
    120120            $config['defaultLang'] = strtolower($m[1]); 
    121121            $config['defaultCountry'] = strtoupper($m[2]); 
    122             $config['defaultLocale'] = $config['defaultLang'].'_'.$config['defaultCountry']; 
    123         }else{ 
    124             die("Syntax error in the defaultLocale parameter in Jelix config file $configFile !"); 
     122            $config['locale'] = $config['defaultLang'].'_'.$config['defaultCountry']; 
     123        }else{ 
     124            die("Syntax error in the locale parameter in Jelix config file $configFile !"); 
    125125        }*/ 
    126126#endif 
  • trunk/lib/jelix/core/jCoordinator.class.php

    r489 r559  
    9292#if PHP50 
    9393        if(function_exists('date_default_timezone_set')){ 
    94             date_default_timezone_set($gJConfig->defaultTimeZone); 
     94            date_default_timezone_set($gJConfig->timeZone); 
    9595        } 
    9696#else 
    97         date_default_timezone_set($gJConfig->defaultTimeZone); 
     97        date_default_timezone_set($gJConfig->timeZone); 
    9898#endif 
    9999        $this->_loadPlugins(); 
     
    159159 
    160160        if(empty($this->moduleName)){ 
    161             $this->moduleName = $gJConfig->defaultModule; 
    162             if(empty($this->actionName)) 
    163                $this->actionName = $gJConfig->defaultAction; 
     161            $this->moduleName = $gJConfig->startModule; 
    164162        } 
    165163        if(empty($this->actionName)){ 
    166             $this->actionName = 'default_index'; 
     164            if($this->moduleName == $gJConfig->startModule) 
     165                $this->actionName = $gJConfig->startAction; 
     166            else 
     167                $this->actionName = 'default_index'; 
    167168        } 
    168169 
  • trunk/lib/jelix/core/jCoordinator.class.php

    r489 r559  
    9292#if PHP50 
    9393        if(function_exists('date_default_timezone_set')){ 
    94             date_default_timezone_set($gJConfig->defaultTimeZone); 
     94            date_default_timezone_set($gJConfig->timeZone); 
    9595        } 
    9696#else 
    97         date_default_timezone_set($gJConfig->defaultTimeZone); 
     97        date_default_timezone_set($gJConfig->timeZone); 
    9898#endif 
    9999        $this->_loadPlugins(); 
     
    159159 
    160160        if(empty($this->moduleName)){ 
    161             $this->moduleName = $gJConfig->defaultModule; 
    162             if(empty($this->actionName)) 
    163                $this->actionName = $gJConfig->defaultAction; 
     161            $this->moduleName = $gJConfig->startModule; 
    164162        } 
    165163        if(empty($this->actionName)){ 
    166             $this->actionName = 'default_index'; 
     164            if($this->moduleName == $gJConfig->startModule) 
     165                $this->actionName = $gJConfig->startAction; 
     166            else 
     167                $this->actionName = 'default_index'; 
    167168        } 
    168169 
  • trunk/lib/jelix/core/jLocale.class.php

    r378 r559  
    4747 
    4848        if($charset == null){ 
    49             $charset = $GLOBALS['gJConfig']->defaultCharset; 
     49            $charset = $GLOBALS['gJConfig']->charset; 
    5050        } 
    5151        if (!in_array ($charset, $this->_loadedCharset)){ 
     
    177177     */ 
    178178    static function getCurrentLang(){ 
    179         $s=$GLOBALS['gJConfig']->defaultLocale; 
     179        $s=$GLOBALS['gJConfig']->locale; 
    180180        return substr($s,0, strpos($s,'_')); 
    181181    } 
     
    185185     */ 
    186186    static function getCurrentCountry (){ 
    187         $s=$GLOBALS['gJConfig']->defaultLocale; 
     187        $s=$GLOBALS['gJConfig']->locale; 
    188188        return substr($s,strpos($s,'_')+1); 
    189189    } 
     
    206206        }catch(jExceptionSelector $e){ 
    207207            if($e->getCode() == 12) throw $e; 
    208             if ($locale === null)  $locale = $gJConfig->defaultLocale; 
    209             if ($charset === null) $charset = $gJConfig->defaultCharset; 
     208            if ($locale === null)  $locale = $gJConfig->locale; 
     209            if ($charset === null) $charset = $gJConfig->charset; 
    210210            throw new Exception('(200)The given locale key "'.$key.'" is invalid  (for charset '.$charset.', lang '.$locale.')'); 
    211211        } 
     
    223223            //if the message was not found, we're gonna 
    224224            //use the default language and country. 
    225             if ($locale    == $gJConfig->defaultLocale){ 
     225            if ($locale    == $gJConfig->locale){ 
    226226                throw new Exception('(210)The given locale key "'.$file->toString().'" does not exists in the default lang for the '.$file->charset.' charset '); 
    227227            } 
    228             return jLocale::get ($key, $args, $gJConfig->defaultLocale); 
     228            return jLocale::get ($key, $args, $gJConfig->locale); 
    229229        }else{ 
    230230            //here, we know the message 
  • trunk/lib/jelix/core/jLocale.class.php

    r378 r559  
    4747 
    4848        if($charset == null){ 
    49             $charset = $GLOBALS['gJConfig']->defaultCharset; 
     49            $charset = $GLOBALS['gJConfig']->charset; 
    5050        } 
    5151        if (!in_array ($charset, $this->_loadedCharset)){ 
     
    177177     */ 
    178178    static function getCurrentLang(){ 
    179         $s=$GLOBALS['gJConfig']->defaultLocale; 
     179        $s=$GLOBALS['gJConfig']->locale; 
    180180        return substr($s,0, strpos($s,'_')); 
    181181    } 
     
    185185     */ 
    186186    static function getCurrentCountry (){ 
    187         $s=$GLOBALS['gJConfig']->defaultLocale; 
     187        $s=$GLOBALS['gJConfig']->locale; 
    188188        return substr($s,strpos($s,'_')+1); 
    189189    } 
     
    206206        }catch(jExceptionSelector $e){ 
    207207            if($e->getCode() == 12) throw $e; 
    208             if ($locale === null)  $locale = $gJConfig->defaultLocale; 
    209             if ($charset === null) $charset = $gJConfig->defaultCharset; 
     208            if ($locale === null)  $locale = $gJConfig->locale; 
     209            if ($charset === null) $charset = $gJConfig->charset; 
    210210            throw new Exception('(200)The given locale key "'.$key.'" is invalid  (for charset '.$charset.', lang '.$locale.')'); 
    211211        } 
     
    223223            //if the message was not found, we're gonna 
    224224            //use the default language and country. 
    225             if ($locale    == $gJConfig->defaultLocale){ 
     225            if ($locale    == $gJConfig->locale){ 
    226226                throw new Exception('(210)The given locale key "'.$file->toString().'" does not exists in the default lang for the '.$file->charset.' charset '); 
    227227            } 
    228             return jLocale::get ($key, $args, $gJConfig->defaultLocale); 
     228            return jLocale::get ($key, $args, $gJConfig->locale); 
    229229        }else{ 
    230230            //here, we know the message 
  • trunk/lib/jelix/core/jSelector.class.php

    r510 r559  
    417417        global $gJConfig; 
    418418        if ($locale === null){ 
    419             $locale = $gJConfig->defaultLocale; 
     419            $locale = $gJConfig->locale; 
    420420        } 
    421421        if ($charset === null){ 
    422             $charset = $gJConfig->defaultCharset; 
     422            $charset = $gJConfig->charset; 
    423423        } 
    424424        if(strpos($locale,'_') === false){ 
     
    564564        } 
    565565 
    566         if($gJConfig->defaultTheme != 'default'){ 
     566        if($gJConfig->theme != 'default'){ 
    567567            // on regarde si il y a un template redéfinie pour le theme courant 
    568             $this->_where = 'themes/'.$gJConfig->defaultTheme.'/'.$this->module.'/'.$gJConfig->defaultLocale.'/'.$this->resource; 
     568            $this->_where = 'themes/'.$gJConfig->theme.'/'.$this->module.'/'.$gJConfig->locale.'/'.$this->resource; 
    569569            $this->_path = JELIX_APP_VAR_PATH.$this->_where.'.tpl'; 
    570570            if (is_readable ($this->_path)){ 
     
    572572            } 
    573573            // on regarde si il y a un template redéfinie pour le theme courant 
    574             $this->_where = 'themes/'.$gJConfig->defaultTheme.'/'.$this->module.'/'.$this->resource; 
     574            $this->_where = 'themes/'.$gJConfig->theme.'/'.$this->module.'/'.$this->resource; 
    575575            $this->_path = JELIX_APP_VAR_PATH.$this->_where.'.tpl'; 
    576576            if (is_readable ($this->_path)){ 
     
    580580 
    581581        // on regarde si il y a un template redéfinie dans le theme par defaut 
    582         $this->_where = 'themes/default/'.$this->module.'/'.$gJConfig->defaultLocale.'/'.$this->resource; 
     582        $this->_where = 'themes/default/'.$this->module.'/'.$gJConfig->locale.'/'.$this->resource; 
    583583        $this->_path = JELIX_APP_VAR_PATH.$this->_where.'.tpl'; 
    584584        if (is_readable ($this->_path)){ 
     
    593593 
    594594        // et sinon, on regarde si le template existe dans le module en question 
    595         $this->_path = $gJConfig->_modulesPathList[$this->module].$this->_dirname.$gJConfig->defaultLocale.'/'.$this->resource.'.tpl'; 
     595        $this->_path = $gJConfig->_modulesPathList[$this->module].$this->_dirname.$gJConfig->locale.'/'.$this->resource.'.tpl'; 
    596596        if (is_readable ($this->_path)){ 
    597             $this->_where = 'modules/'.$this->module.'/'.$gJConfig->defaultLocale.'/'.$this->resource; 
     597            $this->_where = 'modules/'.$this->module.'/'.$gJConfig->locale.'/'.$this->resource; 
    598598            return; 
    599599        } 
  • trunk/lib/jelix/core/jSelector.class.php

    r510 r559  
    417417        global $gJConfig; 
    418418        if ($locale === null){ 
    419             $locale = $gJConfig->defaultLocale; 
     419            $locale = $gJConfig->locale; 
    420420        } 
    421421        if ($charset === null){ 
    422             $charset = $gJConfig->defaultCharset; 
     422            $charset = $gJConfig->charset; 
    423423        } 
    424424        if(strpos($locale,'_') === false){ 
     
    564564        } 
    565565 
    566         if($gJConfig->defaultTheme != 'default'){ 
     566        if($gJConfig->theme != 'default'){ 
    567567            // on regarde si il y a un template redéfinie pour le theme courant 
    568             $this->_where = 'themes/'.$gJConfig->defaultTheme.'/'.$this->module.'/'.$gJConfig->defaultLocale.'/'.$this->resource; 
     568            $this->_where = 'themes/'.$gJConfig->theme.'/'.$this->module.'/'.$gJConfig->locale.'/'.$this->resource; 
    569569            $this->_path = JELIX_APP_VAR_PATH.$this->_where.'.tpl'; 
    570570            if (is_readable ($this->_path)){ 
     
    572572            } 
    573573            // on regarde si il y a un template redéfinie pour le theme courant 
    574             $this->_where = 'themes/'.$gJConfig->defaultTheme.'/'.$this->module.'/'.$this->resource; 
     574            $this->_where = 'themes/'.$gJConfig->theme.'/'.$this->module.'/'.$this->resource; 
    575575            $this->_path = JELIX_APP_VAR_PATH.$this->_where.'.tpl'; 
    576576            if (is_readable ($this->_path)){ 
     
    580580 
    581581        // on regarde si il y a un template redéfinie dans le theme par defaut 
    582         $this->_where = 'themes/default/'.$this->module.'/'.$gJConfig->defaultLocale.'/'.$this->resource; 
     582        $this->_where = 'themes/default/'.$this->module.'/'.$gJConfig->locale.'/'.$this->resource; 
    583583        $this->_path = JELIX_APP_VAR_PATH.$this->_where.'.tpl'; 
    584584        if (is_readable ($this->_path)){ 
     
    593593 
    594594        // et sinon, on regarde si le template existe dans le module en question 
    595         $this->_path = $gJConfig->_modulesPathList[$this->module].$this->_dirname.$gJConfig->defaultLocale.'/'.$this->resource.'.tpl'; 
     595        $this->_path = $gJConfig->_modulesPathList[$this->module].$this->_dirname.$gJConfig->locale.'/'.$this->resource.'.tpl'; 
    596596        if (is_readable ($this->_path)){ 
    597             $this->_where = 'modules/'.$this->module.'/'.$gJConfig->defaultLocale.'/'.$this->resource; 
     597            $this->_where = 'modules/'.$this->module.'/'.$gJConfig->locale.'/'.$this->resource; 
    598598            return; 
    599599        } 
  • trunk/lib/jelix/core/request/jCmdLineRequest.class.php

    r396 r559  
    3535 
    3636        if ($_SERVER['argc'] == 1) { 
    37             $argsel = $gJConfig->defaultModule.'~'.$gJConfig->defaultAction; 
     37            $argsel = $gJConfig->startModule.'~'.$gJConfig->startAction; 
    3838        } else { 
    3939            $argsel = array_shift($argv); // get the module~action selector 
     
    4242            } 
    4343            if (!preg_match('/(?:([\w\.]+)~)/', $argsel)) { 
    44                 $argsel = $gJConfig->defaultModule.'~'.$argsel; 
     44                $argsel = $gJConfig->startModule.'~'.$argsel; 
    4545            } 
    4646        } 
  • trunk/lib/jelix/core/request/jCmdLineRequest.class.php

    r396 r559  
    3535 
    3636        if ($_SERVER['argc'] == 1) { 
    37             $argsel = $gJConfig->defaultModule.'~'.$gJConfig->defaultAction; 
     37            $argsel = $gJConfig->startModule.'~'.$gJConfig->startAction; 
    3838        } else { 
    3939            $argsel = array_shift($argv); // get the module~action selector 
     
    4242            } 
    4343            if (!preg_match('/(?:([\w\.]+)~)/', $argsel)) { 
    44                 $argsel = $gJConfig->defaultModule.'~'.$argsel; 
     44                $argsel = $gJConfig->startModule.'~'.$argsel; 
    4545            } 
    4646        } 
  • trunk/lib/jelix/core/response/jResponseCss.class.php

    r454 r559  
    3737    public function output(){ 
    3838        global $gJConfig; 
    39         $this->_httpHeaders['Content-Type']='text/css;charset='.$gJConfig->defaultCharset; 
     39        $this->_httpHeaders['Content-Type']='text/css;charset='.$gJConfig->charset; 
    4040        $this->_httpHeaders['Content-length']=strlen($this->content); 
    4141        $this->sendHttpHeaders(); 
     
    4747        global $gJConfig; 
    4848        header("HTTP/1.0 500 Internal Server Error"); 
    49         header('Content-Type: text/css;charset='.$gJConfig->defaultCharset); 
     49        header('Content-Type: text/css;charset='.$gJConfig->chars