Mahor rewrite:
[mailer.git] / inc / modules / admin / what-del_email.php
index 13d4b6ef0f947647e3ff6b843e92feb8ee3f9366..10ddba988c63fc8a02a016d8a8bdb7dcec4279ed 100644 (file)
@@ -94,11 +94,11 @@ WHERE s.pool_id=%s LIMIT 1",
                        $totalPoints = $links * $price;
 
                        // Shall we pay the points back to the user?
-                       if ($_CONFIG['repay_deleted_mails'] != 'SHRED') {
+                       if (getConfig('repay_deleted_mails') != "SHRED") {
                                //* DEBUG: */ echo $stats_id.":".$totalPoints."/".$links."/".$price."<br />\n";
                                if ($totalPoints > 0) {
                                        // Shall we payback to user or jackpot?
-                                       if ($_CONFIG['repay_deleted_mails'] == "JACKPOT") {
+                                       if (getConfig('repay_deleted_mails') == "JACKPOT") {
                                                // Set jackpot
                                                $sender = 0;
                                        } // END - if
@@ -108,7 +108,7 @@ WHERE s.pool_id=%s LIMIT 1",
                                        ADD_POINTS_REFSYSTEM("mail_deleted", $sender, $totalPoints, true, "0", false,"direct");
 
                                        // Output message
-                                       if ($_CONFIG['repay_deleted_mails'] == 'REPAY') {
+                                       if (getConfig('repay_deleted_mails') == "REPAY") {
                                                // Repayed
                                                LOAD_TEMPLATE("admin_settings_saved", false, sprintf(ADMIN_POINTS_REPAYED,
                                                        TRANSLATE_COMMA($totalPoints)