SPEEDY improve sysGeneric to stream files instead build them at runtime-commit4

This commit is contained in:
Fernando Ontiveros
2012-11-08 09:06:55 -04:00
parent 6c6d8739ac
commit cfbd2b806d

View File

@@ -1209,7 +1209,7 @@ class G
$defaultTranslations = $translation; $defaultTranslations = $translation;
//if some foreign language was requested and its translation file exists //if some foreign language was requested and its translation file exists
if ($lang != 'en' && file_exists( PATH_LANGUAGECONT . 'translation.' . $lang )) { if ($locale != 'en' && file_exists( PATH_LANGUAGECONT . 'translation.' . $lang )) {
require_once (PATH_LANGUAGECONT . 'translation.' . $lang); //load the foreign translations table require_once (PATH_LANGUAGECONT . 'translation.' . $lang); //load the foreign translations table
$foreignTranslations = $translation; $foreignTranslations = $translation;
} }