]> git.mxchange.org Git - mailer.git/commitdiff
moved initialization of this filter to it's own extension mode-setup.php script
authorRoland Häder <roland@mxchange.org>
Mon, 30 May 2016 15:51:03 +0000 (17:51 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 30 May 2016 15:51:03 +0000 (17:51 +0200)
inc/extensions/server_name/mode-setup.php
inc/filter-functions.php

index e35e77ed8bb06dedbd30969ce437f11954b5117d..8d119b95b4ca7295764e0414a4d6617b5e0191e9 100644 (file)
@@ -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]
index 6edc0252e998085ed4bd4b90fa039929d45c86b7..de21a6fd9c69a8fe4e1d0e050fe5ccc158ced7b0 100644 (file)
@@ -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');