Commit 71912d30 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski
Browse files

Do not initialize translation cache in unit tests

parent 3253a059
......@@ -635,9 +635,8 @@ class Session {
Toolbox::logWarning('Missing required intl PHP extension');
}
$cache = Config::getTranslationCacheInstance(false);
if (!defined('TU_USER')) {
$TRANSLATE->setCache($cache);
$TRANSLATE->setCache(Config::getTranslationCacheInstance(false));
}
$TRANSLATE->addTranslationFile('gettext', GLPI_I18N_DIR.$newfile, 'glpi', $trytoload);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment