Merge branch '15.0.beta3' of http://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3

This commit is contained in:
zhujinyong
2021-03-23 15:10:12 +08:00
2 changed files with 15 additions and 6 deletions
+11 -2
View File
@@ -585,8 +585,17 @@ class commonModel extends model
if(!$openApp) return;
$icon = zget($lang->navIcons, $openApp, '');
$nav = $lang->mainNav->$openApp;
list($title, $currentModule, $currentMethod, $vars) = explode('|', $nav);
if(!in_array($openApp, array('program', 'product', 'project')))
{
$nav = $lang->mainNav->$openApp;
list($title, $currentModule, $currentMethod, $vars) = explode('|', $nav);
}
else
{
$currentModule = $openApp;
if($openApp == 'program' or $openApp == 'project') $currentMethod = 'browse';
if($openApp == 'product') $currentMethod = 'all';
}
$link = $openApp != 'execution' ? helper::createLink($currentModule, $currentMethod) : '';
$html = $link ? html::a($link, "$icon {$lang->$openApp->common}", '', "class='btn'") : "$icon {$lang->$openApp->common}";
+4 -4
View File
File diff suppressed because one or more lines are too long