File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -715,6 +715,7 @@ public function parseObjectProperties(
715
715
// We need english locale to search searchOptions by name
716
716
$ oldLocale = $ TRANSLATE ->getLocale ();
717
717
$ TRANSLATE ->setLocale ("en_GB " );
718
+ $ _SESSION ['glpilanguage ' ] = "en_GB " ;
718
719
if ($ plug = isPluginItemType ($ itemtype )) {
719
720
Plugin::loadLang (strtolower ($ plug ['plugin ' ]), "en_GB " );
720
721
}
@@ -736,6 +737,7 @@ public function parseObjectProperties(
736
737
if (count ($ searchOption ) == 0 ) {
737
738
trigger_error ("No search option found for $ property " , E_USER_WARNING );
738
739
$ TRANSLATE ->setLocale ($ oldLocale );
740
+ $ _SESSION ['glpilanguage ' ] = $ oldLocale ;
739
741
return $ content ;
740
742
}
741
743
@@ -779,6 +781,7 @@ public function parseObjectProperties(
779
781
}
780
782
// Put the old locales on succes or if an expection was thrown
781
783
$ TRANSLATE ->setLocale ($ oldLocale );
784
+ $ _SESSION ['glpilanguage ' ] = $ oldLocale ;
782
785
if ($ plug = isPluginItemType ($ itemtype )) {
783
786
Plugin::loadLang (strtolower ($ plug ['plugin ' ]), $ oldLocale );
784
787
}
You can’t perform that action at this time.
0 commit comments