X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fload_extensions.php;h=1c38a2a7e4456d8d8aa519af35714cc5a26b6ae4;hb=4e47eb8b83ed2fcd4320aeed8b8c460eb1c8fe4b;hp=731bbd4bf94aec7335ce0801324bccd38d1f3ea3;hpb=e1d636846bafc8ae71855595a2a2843463025e26;p=mailer.git diff --git a/inc/load_extensions.php b/inc/load_extensions.php index 731bbd4bf9..1c38a2a7e4 100644 --- a/inc/load_extensions.php +++ b/inc/load_extensions.php @@ -42,7 +42,7 @@ if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); -} +} // END - if // Init variables EXT_INIT_CSS_FILES(); @@ -159,7 +159,7 @@ if ($GLOBALS['cache_mode'] == 'load') { $EXT_DUMMY['ext_deprecated'][$name] = 'N'; // Mark it as active extension - $GLOBALS['cache_array']['active_extensions']['$name'] = $EXT_DUMMY['ext_keep'][$k]; + $GLOBALS['cache_array']['active_extensions'][$name] = $EXT_DUMMY['ext_keep'][$k]; unset($EXT_DUMMY['ext_keep'][$k]); // Remove unneccessary data from memory @@ -184,9 +184,6 @@ if ($GLOBALS['cache_mode'] == 'load') { LOAD_EXTENSION($ext); } // END - foreach - // Init filter system - initFilterSystem(); - // Load more cache files (like admins) loadIncludeOnce('inc/load_cache.php'); @@ -274,16 +271,16 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($GLOBALS['cache_mode'] == 'init') && ( } } // END - while - // Init filter system - initFilterSystem(); - if ($GLOBALS['cache_mode'] == 'init') { // Close cache file $GLOBALS['cache_instance']->finalize(); // Load more cache files (like admins) loadIncludeOnce('inc/load_cache.php'); - } // END - if + } else { + // Init filter system for non-init mode + initFilterSystem(); + } // Free memory SQL_FREERESULT($res_ext_crt);