Skip to content
Merged
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
12 changes: 12 additions & 0 deletions update.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php


rex_dir::delete(rex_path::plugin('bloecks', 'status'));
rex_dir::delete(rex_path::plugin('bloecks', 'cutncopy'));
rex_dir::delete(rex_path::plugin('bloecks', 'dragndrop'));

rex_dir::delete(rex_path::addonAssets('bloecks'));

if (version_compare(rex_addon::get('bloecks')->getVersion(), '5.0.0', '<')) {
Copy link
Preview

Copilot AI Aug 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version comparison logic is inverted. This condition will be true for versions >= 5.0.0, not < 5.0.0 as intended. The comparison operator should be '<' and the logic should check if the current version is less than 5.0.0.

Copilot uses AI. Check for mistakes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skerbis das Feedback von Copilot ist doch falsch, oder? Habe ich einen Knick in der Optik?

rex_config::removeNamespace("bloecks");
}