]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-order.php
Remove filters on uninstallation
[mailer.git] / inc / extensions / ext-order.php
index 34116dafcc433a682a03b987f4586ce0111c2afc..5fcaed6749e1e368e9ee32b944f0ea42c3946145 100644 (file)
@@ -57,6 +57,10 @@ switch (getExtensionMode()) {
                addDropTableSql('url_blacklist');
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what`='config_order' LIMIT 1");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='order'");
+
+               // Remove these filters
+               unregisterFilter(__FUNCTION__, __LINE__, 'get_total_points', 'ORDER_POINTS', true, isExtensionDryRun());
+               unregisterFilter(__FUNCTION__, __LINE__, 'get_own_points', 'ORDER_POINTS', true, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension