mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
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:
parent
784b608691
commit
9ada2c63b9
10 changed files with 48 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue