languges fixes

This commit is contained in:
Diego Najar 2017-10-15 18:06:56 +02:00
parent e8986d89ff
commit 9a7b17ef09

View File

@ -70,7 +70,7 @@ function buildThemes()
// ============================================================================
// Load the language file
$languageFilename = THEME_DIR.'languages'.DS.$Site->locale().'.json';
$languageFilename = THEME_DIR.'languages'.DS.$Site->language().'.json';
if( !Sanitize::pathFile($languageFilename) ) {
$languageFilename = THEME_DIR.'languages'.DS.DEFAULT_LANGUAGE_FILE;
}