Merge branch '15.0.beta3' of http://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3
This commit is contained in:
+11
-2
@@ -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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user