// Registeres an extension and possible update depencies
function EXTENSION_REGISTER ($ext_name, $task_id, $dry_run = false, $logout = true) {
- global $UPDATE_NOTES, $_CONFIG, $INC_POOL, $cacheInstance;
+ global $UPDATE_NOTES, $INC_POOL, $cacheInstance;
global $EXT_VER_HISTORY, $NOTES, $EXT_ALWAYS_ACTIVE, $EXT_VERSION;
- global $EXT_UPDATE_DEPENDS;
+ global $EXT_UPDATE_DEPENDS, $SQLs;
// This shall never do a non-admin user!
if (!IS_ADMIN()) return false;
// Run SQL queries for given extension id
// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
function EXTENSION_RUN_SQLS ($ext_id, $load_mode) {
- global $cacheInstance, $_CONFIG;
+ global $cacheInstance, $SQLs;
// This shall never do a non-admin user!
if (!IS_ADMIN()) return false;
// Updates a given extension with current extension version to latest version
function EXTENSION_UPDATE ($ext_name, $ext_ver, $dry_run = false) {
// This shall never do a non-admin user!
- global $cacheInstance, $_CONFIG, $UPDATE_NOTES, $NOTES, $EXT_VER_HISTORY;
+ global $cacheInstance, $UPDATE_NOTES, $NOTES, $EXT_VER_HISTORY;
global $EXT_UPDATE_DEPENDS, $EXT_VERSION, $INC_POOL, $cacheArray;
// Init arrays
// Output verbose SQL table for extension
function EXTENSION_VERBOSE_TABLE ($queries = array(), $title = ADMIN_SQLS_EXECUTED_ON_REMOVAL, $dashed = "", $switch = false, $width = "100%") {
- global $_CONFIG, $SQLs;
+ global $SQLs;
// Are there some queries in $queries?
if (count($queries) > 0) {