]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-uberwach.php
Possible better fix
[mailer.git] / inc / extensions / ext-uberwach.php
index 4d25dc9836fc8725558fe2dea63943b0eff19ef7..ed1ea89b501e449d779eaec00dd080eb53ffe730 100644 (file)
@@ -42,10 +42,10 @@ if (!defined('__SECURITY')) {
 }
 
 // Version number
-setThisExtensionVersion('0.0');
+setThisExtensionVersion('0.0.1');
 
 // Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0'));
+setExtensionVersionHistory(array('0.0', '0.0.1'));
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
@@ -53,7 +53,8 @@ switch (getExtensionMode()) {
                break;
 
        case 'remove': // Do stuff when removing extension
-               // SQL commands to run
+               // Unregister filter
+               unregisterFilter('page_footer', 'DISPLAY_UBERWACH_SNIPPET', false, true, getExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -67,10 +68,10 @@ switch (getExtensionMode()) {
        case 'update': // Update an extension
                switch (getCurrentExtensionVersion()) {
                        case '0.0.1': // SQL queries for v0.0.1
-                               addExtensionSql('');
+                               registerFilter('page_footer', 'DISPLAY_UBERWACH_SNIPPET', false, true, getExtensionDryRun());
 
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes('');
+                               setExtensionUpdateNotes("Filter zum Anzeigen des Snippets hinzugefügt");
                                break;
                } // END - switch
                break;