Fixes for a lot bug tickets. (Sorry for lame comment)
[mailer.git] / mailid.php
index b1baa9f2f07978bfcef61f48de1f0107f02b2ed6..523d319c1969087c59416f97595aa4eb39b04a2b 100644 (file)
@@ -202,17 +202,17 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
 
        // Error code is set?
        if (!empty($msg)) {
-               switch ($_CONFIG['mailid_error_redirect']) {
+               switch (getConfig('mailid_error_redirect')) {
                        case "INDEX": // Redirect to index page
                                LOAD_URL("modules.php?module=index&msg=".$msg."&ext=mailid");
                                break;
 
                        case "REJECT": // Redirect to rejection page
-                               LOAD_URL($_CONFIG['reject_url']);
+                               LOAD_URL(getConfig('reject_url'));
                                break;
 
                        default:
-                               DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s detected in mailid_error_redirect.", $_CONFIG['mailid_error_redirect']));
+                               DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s detected in mailid_error_redirect.", getConfig('mailid_error_redirect')));
                                LOAD_URL("modules.php?module=index&msg=".CODE_UNKNOWN_STATUS."&ext=mailid");
                                break;
                }