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 e35e77e..8d119b9 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 6edc025..de21a6f 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');