update version check logic in navbar
parent
c4cf52c2bc
commit
e26e36606f
|
@ -524,7 +524,7 @@ function getZMVersionHTML() {
|
|||
$class = 'text-danger';
|
||||
$tt_text = translate('RunLocalUpdate');
|
||||
$content = 'v'.ZM_VERSION.PHP_EOL;
|
||||
} else if ( verNum( ZM_DYN_LAST_VERSION ) <= verNum( ZM_VERSION ) ) { // No update needed
|
||||
} else if ( verNum( ZM_DYN_LAST_VERSION ) <= verNum( ZM_VERSION ) || !ZM_CHECK_FOR_UPDATES || ZM_DYN_NEXT_REMINDER > time() ) { // No update needed
|
||||
$class = ''; // Don't change the text color under normal conditions
|
||||
$tt_text = translate('UpdateNotNecessary');
|
||||
$content = 'v'.ZM_VERSION.PHP_EOL;
|
||||
|
|
Loading…
Reference in New Issue