* Show original method name if it is not string.

This commit is contained in:
dingguodong
2023-07-12 11:21:37 +08:00
parent 3a4c6ce095
commit dd092265d3
+1 -1
View File
@@ -23,7 +23,7 @@ include '../../common/view/header.lite.html.php';
$this->app->loadLang('group');
$groupPriv = isset($lang->resource->$module->$method) ? $lang->resource->$module->$method : $method;
$moduleName = isset($lang->$module->common) ? $lang->$module->common : $module;
$methodName = isset($lang->$module->$groupPriv) ? $lang->$module->$groupPriv : $method;
$methodName = isset($lang->$module->$groupPriv) && is_string($lang->$module->$groupPriv) ? $lang->$module->$groupPriv : $method;
if($module == 'execution' && $method == 'gantt') $methodName = $methodName->common;