NEW Add constant to hide version (#30865)

This commit is contained in:
Zephyriony 2024-09-06 13:24:28 +02:00 committed by GitHub
parent 0e816c32ac
commit fa104fed0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);