From: Roland Haeder Date: Mon, 30 May 2016 15:51:03 +0000 (+0200) Subject: moved initialization of this filter to it's own extension mode-setup.php script X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=569b66daeda62dade6f9f664ecd7ad87aff9c007;p=mailer.git moved initialization of this filter to it's own extension mode-setup.php script --- diff --git a/inc/extensions/server_name/mode-setup.php b/inc/extensions/server_name/mode-setup.php index e35e77ed8b..8d119b95b4 100644 --- a/inc/extensions/server_name/mode-setup.php +++ b/inc/extensions/server_name/mode-setup.php @@ -60,7 +60,8 @@ addExtensionAddTableColumnSql('server_name_log', 'server_name_referrer', 'TINYTE addConfigAddSql('ap_server_name', "ENUM('Y','N') NOT NULL DEFAULT 'Y'"); addConfigAddSql('ap_server_name_since', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay() * 7)); -// Register filter +// Register filters +registerFilter(__FUNCTION__, __LINE__, 'init', 'REDIRECT_WRONG_SERVER_NAME', FALSE, TRUE, isExtensionDryRun()); registerFilter(__FILE__, __LINE__, 'extra_autopurge', 'SERVER_NAME_EXTRA_AUTOPURGE', FALSE, TRUE, isExtensionDryRun()); // [EOF] diff --git a/inc/filter-functions.php b/inc/filter-functions.php index 6edc0252e9..de21a6fd9c 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -118,7 +118,6 @@ ORDER BY registerFilter(__FUNCTION__, __LINE__, 'init', 'COUNT_MODULE'); registerFilter(__FUNCTION__, __LINE__, 'init', 'UPDATE_LOGIN_DATA'); registerFilter(__FUNCTION__, __LINE__, 'init', 'ACTIVATE_EXCHANGE'); - registerFilter(__FUNCTION__, __LINE__, 'init', 'REDIRECT_WRONG_SERVER_NAME'); // Post-initialization registerFilter(__FUNCTION__, __LINE__, 'post_init', 'DETERMINE_USERNAME');