]> git.mxchange.org Git - mailer.git/commitdiff
Remove filters on uninstallation
authorRoland Häder <roland@mxchange.org>
Mon, 4 Jul 2011 01:53:55 +0000 (01:53 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 4 Jul 2011 01:53:55 +0000 (01:53 +0000)
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