massiveart-webservices / ZOOLU

2 stars 1 forks source link

Languagedefinition type not working when rootlevelLanguage is not defaultlanguage #177

Open alexander-schranz opened 10 years ago

alexander-schranz commented 10 years ago

When a portal has only EN, Zoolu default Language is DE and languageDefinitiontype is 0. The site is loaded as DE.

To fix this add else in web.controller.action.class.php:validateLanguage():370:

if ($this->intLanguageDefinitionType != $this->core->config->language_definition->none) {
// ...
} else {
    // if ($this->core->blnIsSessionLanguage !== true) {
        $this->core->logger->debug('theme');
        $this->core->intLanguageId = $this->objTheme->idLanguages;
        $this->core->strLanguageCode = strtolower($this->objTheme->languageCode);
     // }
}
alexander-schranz commented 10 years ago

if blnSessionLanguage !== true must be deleted

if ($this->intLanguageDefinitionType != $this->core->config->language_definition->none) {
// ...
} else {
        $this->core->logger->debug('theme');
        $this->core->intLanguageId = $this->objTheme->idLanguages;
        $this->core->strLanguageCode = strtolower($this->objTheme->languageCode);
}
c00n84 commented 10 years ago

@alexander-schranz is this allready fixed? please check, thx