Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ IMPORTANT NOTE: This version only works on CACTI 1.x++!

--- develop ---

* bug: Allow map duplication on installations without the optional debug column

* refactor: Relocate the plugin's database schema provisioning (`weathermap_setup_table()`) out of `setup.php` into a dedicated `includes/database.php` module (function move only, no behaviour change)
* feature: Add a root `manifest.json` file manifest plus an upgrade-time `weathermap_prune_files()` that removes tombstoned and dev-only paths while protecting whitelisted user data (`configs/`, `output/`) and `.git*`, backed by a `tests/bin/validate-manifest.php` CI gate that fails on manifest drift
* dev: Add xdebug coverage reporting to CI and enforce patch coverage of changed lines
Expand Down
4 changes: 3 additions & 1 deletion weathermap-cacti-plugin-mgmt.php
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,9 @@ function map_duplicate($id, $titlecache, $configfile = null) {
$save['htmlfile'] = '';
$save['filehash'] = '';
$save['warncount'] = 0;
$save['debug'] = 'off';
if (db_column_exists('weathermap_maps', 'debug')) {
$save['debug'] = 'off';
}
$save['config'] = '';
$save['thumb_height'] = $map['thumb_height'];
$save['thumb_width'] = $map['thumb_width'];
Expand Down