mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 21:34:42 +03:00
Do not use $featuresversion global variable
Replace $featuresversion global var with FEATURES_VERSION constant
This commit is contained in:
parent
e42c3feaa7
commit
c1ae7b8eb9
@ -28,7 +28,7 @@ define('DB_VERSION', '2.0');
|
||||
/**
|
||||
* Current version of implemented features
|
||||
*/
|
||||
$featuresversion = '2.0';
|
||||
define('FEATURES_VERSION', '2.0');
|
||||
|
||||
/**
|
||||
* Prefix for session variables.
|
||||
|
@ -39,8 +39,8 @@ $options = array(
|
||||
'enablepopupnotification', 'showonlineoperators',
|
||||
'enablecaptcha');
|
||||
|
||||
if (Settings::get('featuresversion') != $featuresversion) {
|
||||
Settings::set('featuresversion',$featuresversion);
|
||||
if (Settings::get('featuresversion') != FEATURES_VERSION) {
|
||||
Settings::set('featuresversion', FEATURES_VERSION);
|
||||
Settings::update();
|
||||
}
|
||||
$params = array();
|
||||
|
@ -35,7 +35,7 @@ $page = array(
|
||||
'needChangePassword' => check_password_hash($operator['vclogin'], '', $operator['vcpassword']),
|
||||
'profilePage' => MIBEW_WEB_ROOT . "/operator/operator.php?op=".$operator['operatorid'],
|
||||
'updateWizard' => MIBEW_WEB_ROOT . "/install/",
|
||||
'newFeatures' => Settings::get('featuresversion') != $featuresversion,
|
||||
'newFeatures' => Settings::get('featuresversion') != FEATURES_VERSION,
|
||||
'featuresPage' => MIBEW_WEB_ROOT . "/operator/features.php",
|
||||
'isOnline' => $isonline,
|
||||
'title' => getlocal("topMenu.admin"),
|
||||
|
Loading…
Reference in New Issue
Block a user