]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-removeip.php
Many rewrites to get rid of dublicate modreg inserts while ext-cache is registered
[mailer.git] / inc / extensions / ext-removeip.php
index 0c3b40c1651bf2a29bdc9b03b09043f77b7f9ca0..a0badaf25b4a6ada037a849a679d4526f9b6d252 100644 (file)
@@ -50,7 +50,7 @@ EXT_SET_VER_HISTORY(array('0.0', '0.0.1'));
 
 switch ($EXT_LOAD_MODE)
 {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin&action=login is called)
+       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
                // SQL commands to run
                ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `removeip_anon_ip` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD `removeip_anon_host` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
@@ -69,7 +69,7 @@ switch ($EXT_LOAD_MODE)
                ADD_EXT_SQL("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE `what`='config_removeip'");
 
                // Remove filters
-               UNREGISTER_FILTER('post_youhere_line', 'ADD_ANONYMITY_NOTICE', true, $dry_run);
+               unregisterFilter('post_youhere_line', 'ADD_ANONYMITY_NOTICE', true, $dry_run);
                break;
 
        case 'activate': // Do stuff when admin activates this extension
@@ -88,7 +88,7 @@ switch ($EXT_LOAD_MODE)
                                EXT_ADD_UPDATE_DEPENDS('sql_patches');
 
                                // Add filters
-                               REGISTER_FILTER('post_youhere_line', 'ADD_ANONYMITY_NOTICE', false, true, $dry_run);
+                               registerFilter('post_youhere_line', 'ADD_ANONYMITY_NOTICE', false, true, $dry_run);
 
                                // Update notes (these will be set as task text!)
                                EXT_SET_UPDATE_NOTES("Filter hinzugef&uuml;gt und ist von <strong>sql_patches</strong> abh&auml;ngig.");