Closed cedric-anne closed 4 days ago
This variable is not used by GLPI.
I did not find any usage in plugins that would be affected by this removal. Indeed, the following snippets will still work:
// a simple declaration global $LANG; $LANG['pluginkey']['xxx'] = 'value';
// will anyway trigger a warning if the corresponding entry is not defined global $LANG echo $LANG['pluginkey']['xxx'];
// a safe usage global $LANG; if (isset($LANG['genericobject'][$class][0])) { return $LANG['genericobject'][$class][0]; }
First snippet doesn't trigger a warning about an uninitialized array ?
No, PHP consider it as a valid variable initialization.
This variable is not used by GLPI.
I did not find any usage in plugins that would be affected by this removal. Indeed, the following snippets will still work: