Fixes for extension removal, now directly sent to [UN]REGISTER_FILTER()
[mailer.git] / inc / extensions / ext-rallye.php
index a765bdd1cbdf3604fe1fd22865eec7883b3f7665..4e697fc1f9f0dde48b6405ebf4bcce12645a64a5 100644 (file)
@@ -112,7 +112,7 @@ case "remove": // Do stuff when removing extension
        $SQLs[] = "DELETE LOW_PRIORITY FROM `"._MYSQL_PREFIX."_member_menu` WHERE what='rallyes' LIMIT 1";
 
        // Unregister filter
-       UNREGISTER_FILTER('extra_autopurge', 'RALLYE_EXTRA_AUTOPURGE', true, !$dry_run);
+       UNREGISTER_FILTER('extra_autopurge', 'RALLYE_EXTRA_AUTOPURGE', true, $dry_run);
        break;
 
 case "activate": // Do stuff when admin activates this extension
@@ -311,7 +311,7 @@ Zudem sollten Sie mindestens folgende Templates (in <STRONG>templates/".GET_LANG
                $EXT_UPDATE_DEPENDS = "sql_patches";
 
                // Register filter
-               REGISTER_FILTER('extra_autopurge', 'RALLYE_EXTRA_AUTOPURGE', false, true, !$dry_run);
+               REGISTER_FILTER('extra_autopurge', 'RALLYE_EXTRA_AUTOPURGE', false, true, $dry_run);
 
                // Update notes (these will be set as task text!)
                $UPDATE_NOTES = "Filter hinzugef&uuml;gt und ist von <strong>sql_patches</strong> abh&auml;ngig.";