]> git.mxchange.org Git - mailer.git/commitdiff
Function INIT_FILTER_SYSTEM() is now being executed even when there are no extensions...
authorRoland Häder <roland@mxchange.org>
Mon, 22 Dec 2008 13:19:40 +0000 (13:19 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 22 Dec 2008 13:19:40 +0000 (13:19 +0000)
inc/databases.php
inc/filters.php
inc/load_extensions.php

index ae4d2bc0f0df460611c3b9f929118199f03eae78..e020097b9dec5f76aa49667c26a6c0bf116f2455 100644 (file)
@@ -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);
index 8ebe34f0c6a24180a9b0122cd1c194b42d9b47b7..0a30fc752e45697043683f813ceaea382cbfa2a6 100644 (file)
@@ -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'])) {
index a1544e6c3c0a31408c4b4f84402165ff6be13cf5..4fc530349ea17a17f1bd50c7b09c23aa44bd5984 100644 (file)
@@ -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);