Do not use $featuresversion global variable

Replace $featuresversion global var with FEATURES_VERSION constant
This commit is contained in:
Dmitriy Simushev 2014-01-20 14:47:00 +00:00
parent e42c3feaa7
commit c1ae7b8eb9
3 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

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

View File

@ -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"),