NEW Add constant to hide version (#30865)
This commit is contained in:
parent
0e816c32ac
commit
fa104fed0f
1 changed files with 1 additions and 1 deletions
|
|
@ -2432,7 +2432,7 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead
|
|||
}
|
||||
}
|
||||
|
||||
if (!getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER')) {
|
||||
if (!getDolGlobalString('MAIN_OPTIMIZEFORTEXTBROWSER') && getDolGlobalInt('MAIN_HIDE_VERSION') == 0) {
|
||||
$text = '<span class="aversion"><span class="hideonsmartphone small">'.DOL_VERSION.'</span></span>';
|
||||
// @phan-suppress-next-line PhanPluginSuspiciousParamPosition
|
||||
$toprightmenu .= $form->textwithtooltip('', $appli, 2, 1, $text, 'login_block_elem', 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue