]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-coupon.php
Handling of cache 'earning' added
[mailer.git] / inc / extensions / ext-coupon.php
index fb4450575a6b8e2d44b9ca7487baff7416dae6c0..18cb42983559d0a588581659ed57ff1128a318a5 100644 (file)
@@ -43,10 +43,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.0.1');
+setThisExtensionVersion('0.0.3');
 
 // Version history array (add more with , '0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3'));
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installtion is running
@@ -114,6 +114,7 @@ UNIQUE (`coupon_code`)",
 
                // Remove all filters
                unregisterFilter(__FUNCTION__, __LINE__, 'determine_points_column_name', 'COUPON_CHANGE_POINTS_COLUMN_NAME', true, isExtensionDryRun());
+               unregisterFilter(__FUNCTION__, __LINE__, 'post_cash_coupon', 'POST_CASH_COUPON', true, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -144,12 +145,19 @@ UNIQUE (`coupon_code`)",
                                setExtensionUpdateNotes('');
                                break;
 
-                       case '0.0.1': // SQL queries for v0.0.1
+                       case '0.0.2': // SQL queries for v0.0.2
                                // Update data in points_data table
                                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_points_data` SET `subject`='coupon_cashed' WHERE `subject`='coupon' LIMIT 1");
 
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes('');
+                               setExtensionUpdateNotes('Eintrag in <strong>{CONFIG_OPEN}_MYSQL_PREFIX{CONFIG_CLOSE}_points_data</strong> umbenannt.');
+                               break;
+
+                       case '0.0.3': // SQL queries for v0.0.3
+                               registerFilter('post_cash_coupon', 'POST_CASH_COUPON', false, true, isExtensionDryRun());
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes('Filter zum Post- und Pre-Filter hinzugef&uuml;gt.');
                                break;
                } // END - switch
                break;