mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-02 13:18:12 +09:00
Introduce new get_cacti_version function to reduce database calls on pages
This commit is contained in:
1 parent
7985ca2e81
commit
1a14cbb440
46 files changed
+121
-130
No files matched your search
+1
-2
@@ -44,8 +44,7 @@ ini_set('max_execution_time', '0');
|
||||
|
||||
$cacti_versions = array_keys($cacti_version_codes);
|
||||
|
||||
$old_cacti_version = db_fetch_cell('SELECT cacti FROM version');
|
||||
$old_cacti_version = trim($old_cacti_version);
|
||||
$old_cacti_version = get_cacti_version();
|
||||
|
||||
/* do a version check */
|
||||
if ($old_cacti_version == CACTI_VERSION) {
|
||||
|
||||
Reference in new issue
Block a user