Minor improvements (#1480)

* Some enhancements for updates checker

* Updated

* Update updater.php

* Update init_bb.php

* Update CHANGELOG.md

* Update globals.css

* Updated

* Update functions.php

* Update init_bb.php

* Updated

* Updated

* Updated

* Update update_geolite_db.php

* Update update_geolite_db.php

* Update update_geolite_db.php

* Updated

* Update .gitignore

* Update init_bb.php

* Updated

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-05-11 00:44:35 +07:00 committed by GitHub
commit 9ada2c63b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 48 additions and 38 deletions

View file

@ -28,7 +28,7 @@ define('USER_IP', $user_ip);
define('IN_DEMO_MODE', env('APP_DEMO_MODE', false));
// Version code
define('VERSION_CODE', (int)trim(str_replace(['.', 'v', ','], '', $bb_cfg['tp_version'])));
define('VERSION_CODE', (int)trim(str_replace(['.', 'v'], '', $bb_cfg['tp_version'])));
/**
* @param $contents
@ -403,6 +403,10 @@ $userdata =& $user->data;
/**
* Check for updates
*/
$updaterFile = readUpdaterFile();
if ($updaterFile && ($updaterFile['previous_version'] < VERSION_CODE)) {
define('IN_UPDATER', true);
}
/**
* Cron