* [bug #65320] fix gantt label not show sometimes.

This commit is contained in:
sunhao
2025-09-10 09:59:27 +08:00
parent ca4781b144
commit d2b530beef
-3
View File
@@ -29,10 +29,7 @@ class gantt extends wg
{
global $app;
$currentLang = $app->getClientLang();
$langJSFile = $app->getWwwRoot() . 'js/dhtmlxgantt/lang/' . $currentLang . '.js';
$js = file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
if($currentLang != 'en' && file_exists($langJSFile)) $js .= "\nwaitGantt(function(){\n" . file_get_contents($langJSFile) . "\n});\n";
return $js;
}