mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-21 20:23:18 +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
@@ -143,7 +143,7 @@ function associate($data_template_id, $data_rra, $debug, $quiet) {
|
||||
|
||||
/* display_version - displays version information */
|
||||
function display_version() {
|
||||
$version = db_fetch_cell('SELECT cacti FROM version');
|
||||
$version = get_cacti_version();
|
||||
echo "Cacti Data Template Associate RRD Utility, Version $version, " . COPYRIGHT_YEARS . "\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user