From 919aba3243745d02fc0d07ad38a716e5b5d4b289 Mon Sep 17 00:00:00 2001 From: quix0r Date: Mon, 22 Dec 2008 13:19:40 +0000 Subject: [PATCH] Function INIT_FILTER_SYSTEM() is now being executed even when there are no extensions installed. Resolved #16 --- inc/databases.php | 2 +- inc/filters.php | 4 ++-- inc/load_extensions.php | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index ae4d2bc0f0..e020097b9d 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -115,7 +115,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision -define('CURR_SVN_REVISION', "694"); +define('CURR_SVN_REVISION', "695"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/filters.php b/inc/filters.php index 8ebe34f0c6..0a30fc752e 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -38,7 +38,7 @@ if (!defined('__SECURITY')) { } // Init "generic filter system" -function INIT_FILTER_SYSTEM() { +function INIT_FILTER_SYSTEM () { global $filters, $loadedFilters, $counter; // Is the filter already initialized? @@ -492,7 +492,7 @@ function FILTER_CHECK_ADMIN_ACL () { $ret = true; // Ok, Cookie-Update done - if ((EXT_IS_ACTIVE("admins")) && (GET_EXT_VERSION("admins") > "0.2")) { + if (GET_EXT_VERSION("admins") >= "0.3") { // Check if action GET variable was set $action = SQL_ESCAPE($GLOBALS['action']); if (!empty($GLOBALS['what'])) { diff --git a/inc/load_extensions.php b/inc/load_extensions.php index a1544e6c3c..4fc530349e 100644 --- a/inc/load_extensions.php +++ b/inc/load_extensions.php @@ -265,7 +265,10 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($cacheMode == "init") && ($CSS != "1") // Free memory SQL_FREERESULT($res_ext_crt); -} // END - if +} else { + // Init filter system even when there are no extensions installed. #16 + INIT_FILTER_SYSTEM(); +} // Run the filter RUN_FILTER('load_includes', $INC_POOL); -- 2.39.5