New : option to show database name in upper help menu
This commit is contained in:
parent
2f2d17926d
commit
739317a794
@ -1581,6 +1581,10 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
|
|||||||
if ($helpbaseurl && $helppage)
|
if ($helpbaseurl && $helppage)
|
||||||
{
|
{
|
||||||
$text='';
|
$text='';
|
||||||
|
if(!empty($conf->global->MAIN_SHOWDATABASENAMEINHELPPAGESLINK)) {
|
||||||
|
$langs->load('admin');
|
||||||
|
$appli .= '<br>' . $langs->trans("Database") . ': ' . $db->database_name;
|
||||||
|
}
|
||||||
$title=$appli.'<br>';
|
$title=$appli.'<br>';
|
||||||
$title.=$langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage': 'GoToHelpPage');
|
$title.=$langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage': 'GoToHelpPage');
|
||||||
if ($mode == 'wiki') $title.=' - '.$langs->trans("PageWiki").' "'.dol_escape_htmltag(strtr($helppage,'_',' ')).'"';
|
if ($mode == 'wiki') $title.=' - '.$langs->trans("PageWiki").' "'.dol_escape_htmltag(strtr($helppage,'_',' ')).'"';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user