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'");
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
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ügt und ist von <strong>sql_patches</strong> abhängig.");