// Init variables
EXT_INIT_CSS_FILES();
-$ADD = "";
+$add = "";
// Init cache instance and array
$GLOBALS['cache_instance'] = null;
} // END - if
// Init inc pool array
-$INC_POOL = array();
+INIT_INC_POOL();
//
// Load extensions
// If current user is not admin load only activated extensions. But load
// them all if we are going to init the cache files. The admin shall use
// every available extension for testing purposes.
- if ((!IS_ADMIN()) && ($GLOBALS['cache_mode'] != "init")) $ADD = " WHERE ext_active='Y'";
+ if ((!IS_ADMIN()) && ($GLOBALS['cache_mode'] != "init")) $add = " WHERE ext_active='Y'";
if (GET_EXT_VERSION("sql_patches") >= "0.0.6") {
// Query with CSS file from DB
$res_ext_crt = SQL_QUERY("SELECT id AS ext_id, ext_name, ext_has_css AS ext_css, ext_active, ext_version
-FROM `{!_MYSQL_PREFIX!}_extensions`".$ADD."
+FROM `{!_MYSQL_PREFIX!}_extensions`".$add."
ORDER BY ext_name", __FILE__, __LINE__);
} else {
// Old obsolete query string
$res_ext_crt = SQL_QUERY("SELECT id AS ext_id, ext_name, ext_name, ext_active, ext_version
-FROM `{!_MYSQL_PREFIX!}_extensions`".$ADD."
+FROM `{!_MYSQL_PREFIX!}_extensions`".$add."
ORDER BY ext_name", __FILE__, __LINE__);
}
}
}
// Run the filter
-runFilterChain('load_includes', $INC_POOL);
+runFilterChain('load_includes');
// Uninstall extensions that are no longer in our system
if (!empty($DEL[0])) {