From 671f0fea4b23b0fc2e571dd2b1b949db223dade8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 30 Oct 2009 06:10:10 +0000 Subject: [PATCH] Possible fix for extension deactivation --- inc/modules/admin/what-extensions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.5