Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for trying to lookup the default language too early.
  • Loading branch information
dasgarner committed Jul 16, 2018
1 parent 5904fc0 commit 130bd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Helper/Translate.php
Expand Up @@ -46,7 +46,7 @@ class Translate
public static function InitLocale($config, $language = NULL)
{
// The default language
$default = $config->GetSetting('DEFAULT_LANGUAGE');
$default = ($language === null) ? $config->GetSetting('DEFAULT_LANGUAGE') : $language;

// Build an array of supported languages
$localeDir = PROJECT_ROOT . '/locale';
Expand Down

1 comment on commit 130bd0c

@farmaceutics
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much, changing the code line, the Xibo CMS installer works correctly, version 1.8.10.
(Manual installation on a Linux web server. PHP version 5.6.)

Please sign in to comment.