diff --git a/CHANGELOG.md b/CHANGELOG.md index 647f73e..6151088 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ --- 3.0 --- +* bug: Pass a boolean (not the integer 1) to api_plugin_register_hook()'s $enable argument so the hook registration stays type-correct under Cacti 1.3's strict bool type-hint (the int only coerces while the file lacks declare(strict_types=1)) * feature: Adopt the Cacti plugin table API and relocate schema provisioning into includes/database.php * feature: Add a fleet-wide manifest.json with upgrade-time file pruning * feature: Consolidate per-theme override stylesheets from themes/ into css/ diff --git a/setup.php b/setup.php index bc3dacd..3a01467 100644 --- a/setup.php +++ b/setup.php @@ -334,7 +334,7 @@ function monitor_check_upgrade() { monitor_setup_table(); monitor_upgrade_tables(); - api_plugin_register_hook('monitor', 'page_head', 'plugin_monitor_page_head', 'setup.php', 1); + api_plugin_register_hook('monitor', 'page_head', 'plugin_monitor_page_head', 'setup.php', true); db_execute('ALTER TABLE host MODIFY COLUMN monitor char(3) DEFAULT "on"');