X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_email.php;h=de084bb7c3c8d9c05654dbb17f05206506b9cc77;hb=cc59ea1cce3e0fafc2cc6c9e36142698cf2b58ef;hp=f23808f9f2811ba7b660983a0d9f79da25b7d67f;hpb=305141b6b5b656e0fb10505e5ae66fdc0ce2e391;p=mailer.git diff --git a/inc/modules/admin/what-del_email.php b/inc/modules/admin/what-del_email.php index f23808f9f2..de084bb7c3 100644 --- a/inc/modules/admin/what-del_email.php +++ b/inc/modules/admin/what-del_email.php @@ -109,8 +109,8 @@ LIMIT 1", } // END - if // Pay back points - //* DEBUG: */ debugOutput('PAYBACK:'.$content['sender']); - addPointsDirectly('mail_deleted', $content['sender'], $totalPoints); + initReferalSystem(); + addPointsThroughReferalSystem('mail_deleted', $content['sender'], $totalPoints); // Output message if (getConfig('repay_deleted_mails') == 'REPAY') { @@ -183,8 +183,8 @@ LIMIT 1", $count += SQL_AFFECTEDROWS(); // Prepare data for the template - $content['timestamp'] = generateDateTime($content['timestamp'], 0); - $content['cnt'] = $count; + $content['timestamp'] = generateDateTime($content['timestamp'], '0'); + $content['count'] = $count; // Load template loadTemplate('admin_delete_email_bonus', false, $content); @@ -217,8 +217,8 @@ LIMIT 1", $count += SQL_AFFECTEDROWS(); // Prepare data for the template - $content['timestamp'] = generateDateTime($content['timestamp'], 0); - $content['cnt'] = $count; + $content['timestamp'] = generateDateTime($content['timestamp'], '0'); + $content['count'] = $count; // Load template loadTemplate('admin_delete_email_notify', false, $content);