Mahor rewrite:
[mailer.git] / inc / modules / admin / what-extensions.php
index 204d1974b21dfad0f6507414b7e09b83eb11088d..d1d373d2ba2bd2f74dc6205f08d84890c602f717 100644 (file)
@@ -93,8 +93,8 @@ if (!empty($_GET['reg_ext'])) {
 
                                // Run SQLs on activation / deactivation
                                switch ($active) {
-                                       case 'Y': $EXT_LOAD_MODE = "activate";   break;
-                                       case 'N': $EXT_LOAD_MODE = "deactivate"; break;
+                                       case "Y": $EXT_LOAD_MODE = "activate";   break;
+                                       case "N": $EXT_LOAD_MODE = "deactivate"; break;
                                }
 
                                // Run embeded SQL commands
@@ -163,7 +163,7 @@ if (!empty($_GET['reg_ext'])) {
                // Get extension name
                $ext_name = GET_EXT_NAME($ext_id);
 
-               if ($_CONFIG['verbose_sql'] == "Y") {
+               if (getConfig('verbose_sql') == "Y") {
                        // Load SQL commands in remove mode
                        if (LOAD_EXTENSION($ext_name, "remove", "", true)) {
                                // Generate extra table with loaded SQL commands