From 5277341a2b89ef4c5370be2598796f1f02f1c4e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 30 May 2016 17:51:03 +0200 Subject: [PATCH] moved initialization of this filter to it's own extension mode-setup.php script --- inc/extensions/server_name/mode-setup.php | 3 ++- inc/filter-functions.php | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.39.5