-} // END - if
-
-// Load include files if found
-if (!empty($INC_POOL[0])) {
- foreach ($INC_POOL as $inc) {
- require_once($inc);
- } // END - foreach
+} elseif ((!EXT_IS_ACTIVE('cache')) || (($GLOBALS['cache_mode'] == 'init') && (getOutputMode() != 0))) {
+ // Init filter system even when there are no extensions installed. #16
+ initFilterSystem();
+} elseif ($GLOBALS['cache_mode'] != 'load') {
+ // Something unexpected!
+ debug_report_bug('Unexpected state in '.basename(__FILE__).': cache_mode='.$GLOBALS['cache_mode'].', numRows='.SQL_NUMROWS($res_ext_crt));
+}