Update version on callsing debug page

This commit is contained in:
phl0
2024-09-12 16:09:12 +02:00
parent 628e67a4ec
commit 6d7f953f66
3 changed files with 18 additions and 9 deletions

View File

@@ -27,6 +27,8 @@ class Debug extends CI_Controller
$footerData = [];
$footerData['scripts'] = ['assets/js/sections/debug.js'];
$this->Update_model->update_check(true);
$data['running_version'] = $this->optionslib->get_option('version');
$data['latest_release'] = $this->optionslib->get_option('latest_release');
if ($data['latest_release'] && version_compare($data['latest_release'], $data['running_version'], '>')) {