define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "672");
+define('CURR_SVN_REVISION', "673");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
array($ext_name, $EXT_ALWAYS_ACTIVE, $EXT_VERSION), __FILE__, __LINE__);
// Remove cache file(s) if extension is active
- RUN_FILTER('post_extension_installed', array('ext_name' => $ext_name, 'task_id' => $task_id));
+ RUN_FILTER('post_extension_installed', array('ext_name' => $ext_name, 'task_id' => $task_id, 'inc_pool' => $INC_POOL));
// In normal mode return a true on success
$ret = true;
function FILTER_LOAD_INCLUDES ($data) {
global $CSS;
+ // Default is $data as inclusion list
+ $INC_POOL = $data;
+
// Is it an array?
if ((!isset($data)) || (!is_array($data))) {
// Then abort here
DEBUG_LOG(__FILE__, __LINE__, "INC_POOL is no array!");
- return;
- } // END - if
+ return $data;
+ } elseif (isset($data['inc_pool'])) {
+ // Use this as new inclusion pool!
+ $INC_POOL = $data['inc_pool'];
+ }
// Check for added include files
- if (count($data) > 0) {
+ if (count($INC_POOL) > 0) {
// Loads every include file
- foreach ($data as $FQFN) {
+ foreach ($INC_POOL as $FQFN) {
require_once($FQFN);
} // END - foreach
// Reset array
- $data = array();
+ if (isset($data['inc_pool'])) $data['inc_pool'] = array();
} // END - if
+
+ // Continue with processing
+ return $data;
}
// Filter for running SQL commands