Skip to content

Commit

Permalink
3.0.0beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
AndiLeni committed May 19, 2023
1 parent 1354364 commit 30a9d3a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
## [x.x.x] - xx.xx.xxxx


## [3.0.0beta3] - 19.05.2023


## [3.0.0beta2] - 19.05.2023


Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: statistics
version: 3.0.0beta2
version: 3.0.0beta3
author: Andreas Lenhardt
supportpage: https://github.com/AndiLeni/statistics

Expand Down
13 changes: 10 additions & 3 deletions update.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
if (rex_plugin::exists('statistics', 'api')) {

// copy old config
rex_config::set("statistics_api_enable", rex_config::get("statistics/api", "statistics_api_enable"));
if (rex_config::has("statistics/api", "statistics_api_enable")) {
rex_config::set("statistics_api_enable", rex_config::get("statistics/api", "statistics_api_enable"));
}

// delete uninstall.php of plugin
rex_file::delete(rex_path::plugin('statistics', 'api', 'uninstall.php'));
Expand All @@ -44,8 +46,13 @@
}

if (rex_plugin::exists('statistics', 'media')) {
rex_config::set("statistics_media_log_all", rex_config::get("statistics/media", "statistics_media_log_all"));
rex_config::set("statistics_media_log_mm", rex_config::get("statistics/media", "statistics_media_log_mm"));

if (rex_config::has("statistics/media", "statistics_media_log_all")) {
rex_config::set("statistics_media_log_all", rex_config::get("statistics/media", "statistics_media_log_all"));
}
if (rex_config::has("statistics/media", "statistics_media_log_mm")) {
rex_config::set("statistics_media_log_mm", rex_config::get("statistics/media", "statistics_media_log_mm"));
}

rex_file::delete(rex_path::plugin('statistics', 'media', 'uninstall.php'));

Expand Down

0 comments on commit 30a9d3a

Please sign in to comment.