Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
71912d30
Commit
71912d30
authored
Jun 23, 2021
by
Cédric Anne
Committed by
Johan Cwiklinski
Jun 23, 2021
Browse files
Do not initialize translation cache in unit tests
parent
3253a059
Changes
1
Hide whitespace changes
Inline
Side-by-side
inc/session.class.php
View file @
71912d30
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment