Merge pull request #8715 from bafbes/abb6031

New : option to show database name in upper help menu
This commit is contained in:
Laurent Destailleur 2018-05-02 18:26:50 +02:00 committed by GitHub
commit 0310db7e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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").' &quot;'.dol_escape_htmltag(strtr($helppage,'_',' ')).'&quot;';