Fixed endless loop, if no sql_patches is installed and modules.php?module=index was...
[mailer.git] / mailid.php
index b1baa9f..523d319 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;
                }