mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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)
|
||||
{
|
||||
$text='';
|
||||
if(!empty($conf->global->MAIN_SHOWDATABASENAMEINHELPPAGESLINK)) {
|
||||
$langs->load('admin');
|
||||
$appli .= '<br>' . $langs->trans("Database") . ': ' . $db->database_name;
|
||||
}
|
||||
$title=$appli.'<br>';
|
||||
$title.=$langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage': 'GoToHelpPage');
|
||||
if ($mode == 'wiki') $title.=' - '.$langs->trans("PageWiki").' "'.dol_escape_htmltag(strtr($helppage,'_',' ')).'"';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user