$INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/autopurge/", "purge-");
// Run the filter
-RUN_FILTER('load_includes');
+RUN_FILTER('load_includes', $INC_POOL);
// Run filters for extra autopurge
RUN_FILTER('extra_autopurge');
$INC_POOL = RESET_ADD_INCLUDES();
// Run the filter
- RUN_FILTER('load_includes');
+ RUN_FILTER('load_includes', $INC_POOL);
} // END - if
//
define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "669");
+define('CURR_SVN_REVISION', "670");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// In real-mode execute any existing includes
if (!$dry_run) {
$cacheArray['inc_pool'][$ext_name] = $INC_POOL;
- RUN_FILTER('load_includes');
+ RUN_FILTER('load_includes', $INC_POOL);
$INC_POOL = $cacheArray['inc_pool'][$ext_name];
unset($cacheArray['inc_pool'][$ext_name]);
} // END - if
}
// Filter to load include files
-function FILTER_LOAD_INCLUDES ($data) {
- global $INC_POOL, $CSS;
+function FILTER_LOAD_INCLUDES ($INC_POOL) {
+ global $CSS;
// Is it an array?
if ((!isset($INC_POOL)) || (!is_array($INC_POOL))) {
// Then abort here
DEBUG_LOG(__FILE__, __LINE__, "INC_POOL is no array!");
- return $data;
+ return;
} // END - if
// Check for added include files
require_once($fqfn);
} // END - foreach
- // Remove array
- unset($INC_POOL);
+ // Reset array
+ $INC_POOL = array();
} // END - if
-
- // Return $data
- return $data;
}
// Filter for running SQL commands
$INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/loader/", "load_cache-");
// Run the filter
-RUN_FILTER('load_includes');
+RUN_FILTER('load_includes', $INC_POOL);
//
?>
} // END - if
// Run the filter
-RUN_FILTER('load_includes');
+RUN_FILTER('load_includes', $INC_POOL);
// Uninstall extensions that are no longer in our system
if (!empty($DEL[0])) {
$INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/pool/", "pool-");
// Run the filter
-RUN_FILTER('load_includes');
+RUN_FILTER('load_includes', $INC_POOL);
// Remove counter again
unset($GLOBALS['pool_cnt']);