]> git.mxchange.org Git - mailer.git/commitdiff
Possible fix for extension deactivation
authorRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 06:10:10 +0000 (06:10 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2009 06:10:10 +0000 (06:10 +0000)
inc/modules/admin/what-extensions.php

index 407bd62158ae06eaf55da06192032d27427b2007..c9421a7cf65a586e51c38c21e217692037eea521 100644 (file)
@@ -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);