diff --git a/src/Report.php b/src/Report.php index c8e6865..934e838 100644 --- a/src/Report.php +++ b/src/Report.php @@ -85,6 +85,9 @@ public static function searchReport($all = false) foreach (glob(Plugin::getPhpDir($plug['directory']) . "/report/*", GLOB_ONLYDIR) as $path) { $tab[basename($path)] = $plug['directory']; self::includeLocales(basename($path), $plug['directory']); + if (is_file($path . "/" . basename($path) . "." . $_SESSION['glpilanguage'] . ".php")) { + include $path . "/" . basename($path) . "." . $_SESSION['glpilanguage'] . ".php"; + } } }