// Skip loading extensions
if ((!isInstalled()) || (isInstalling())) {
// Init filter system here
- INIT_FILTER_SYSTEM();
+ initFilterSystem();
// Skip loading
return;
switch (($GLOBALS['cache_instance']->loadCacheFile('extensions', true)) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) {
case true : $GLOBALS['cache_mode'] = 'load'; break;
case false: $GLOBALS['cache_mode'] = 'init'; break;
- }
+ } // END - switch
- // Do we need to init the cache?
- if (($GLOBALS['cache_mode'] == 'init') && (getConfig('cache_exts') == 'Y')) {
+ // Do we need to init the cache? But not in "CSS mode".
+ if (($GLOBALS['cache_mode'] == 'init') && (getConfig('cache_exts') == 'Y') && (getOutputMode() == '0')) {
// Init cache file
$GLOBALS['cache_instance']->init('EXTENSIONS');
$GLOBALS['cache_instance']->storeExtensionVersion('sql_patches');
} // END - foreach
// Init filter system
- INIT_FILTER_SYSTEM();
+ initFilterSystem();
// Load more cache files (like admins)
loadIncludeOnce('inc/load_cache.php');
$DEL = array();
// At least one found?
-if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($GLOBALS['cache_mode'] == 'init') && ($GLOBALS['output_mode'] != '1') && ($GLOBALS['output_mode'] != '-1')) || ($GLOBALS['cache_mode'] == 'no'))) {
+if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($GLOBALS['cache_mode'] == 'init') && (getOutputMode() != '1') && (getOutputMode() != '-1')) || ($GLOBALS['cache_mode'] == 'no'))) {
// Extensions are registered so we load them
while ($content = SQL_FETCHARRAY($res_ext_crt)) {
// Get menu entry
} // END - while
// Init filter system
- INIT_FILTER_SYSTEM();
+ initFilterSystem();
if ($GLOBALS['cache_mode'] == 'init') {
// Close cache file
SQL_FREERESULT($res_ext_crt);
} elseif (!EXT_IS_ACTIVE('cache')) {
// Init filter system even when there are no extensions installed. #16
- INIT_FILTER_SYSTEM();
+ initFilterSystem();
}
// Run the filter