* Show original method name if it is not string.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user