From: Roland Häder Date: Fri, 30 Oct 2009 06:10:10 +0000 (+0000) Subject: Possible fix for extension deactivation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=671f0fea4b23b0fc2e571dd2b1b949db223dade8;p=mailer.git Possible fix for extension deactivation --- diff --git a/inc/modules/admin/what-extensions.php b/inc/modules/admin/what-extensions.php index 407bd62158..c9421a7cf6 100644 --- a/inc/modules/admin/what-extensions.php +++ b/inc/modules/admin/what-extensions.php @@ -66,10 +66,10 @@ if (isGetRequestElementSet('reg_ext')) { // Keep this extension active! } else { // De/activate extension - $ACT = 'N'; getExtensionMode('deactivate'); + $ACT = 'N'; setExtensionMode('deactivate'); if ($active != 'Y') { $ACT = 'Y'; setExtensionMode('activate'); } SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='".$ACT."' WHERE `id`=%s AND `ext_active`='%s' LIMIT 1", - array(bigintval($ext_id), $active), __FILE__, __LINE__); + array(bigintval($ext_id), $active), __FILE__, __LINE__); // Run embeded SQL commands doExtensionSqls($ext_id, getExtensionMode()); @@ -87,7 +87,7 @@ if (isGetRequestElementSet('reg_ext')) { // Change this extension? if ($sel == 1) { // Load mode is modify - getExtensionMode('modify'); + setExtensionMode('modify'); // Get entry for 'active' $active = postRequestElement('active', $ext_id);