X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions.php;h=4cc56fb5b6e10863564df84147d4d68ade3ecaf0;hp=5686e7c0edd0e11a50de5e688da0f7e98d6543d8;hb=3e67aa21428cb9bc5b8d7552d2dd0770fc46dfb3;hpb=0f9689b7d070311251abdc1dc3c5f970a4227021 diff --git a/inc/extensions.php b/inc/extensions.php index 5686e7c0ed..4cc56fb5b6 100644 --- a/inc/extensions.php +++ b/inc/extensions.php @@ -125,9 +125,9 @@ function LOAD_EXTENSION ($ext_name, $EXT_LOAD_MODE = "", $EXT_VER = "", $dry_run // 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; @@ -282,7 +282,7 @@ function EXTENSION_REGISTER ($ext_name, $task_id, $dry_run = false, $logout = tr // 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; @@ -420,7 +420,7 @@ function GET_EXT_VERSION ($ext_name) { // 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 @@ -519,7 +519,7 @@ function EXTENSION_UPDATE ($ext_name, $ext_ver, $dry_run = false) { // 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) {