X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-payout.php;h=a61a58bf3cc65435de6702eb2a4f91d8e7207649;hb=19cd0d37b2bcbf9dd4f3c38a9cecd7f5011d6b66;hp=c7eb1fbaf6a3546b89e5fe067497e0851d79cfc7;hpb=60494e212a67fe360bfbb481eb4928480a6f379b;p=mailer.git diff --git a/inc/modules/member/what-payout.php b/inc/modules/member/what-payout.php index c7eb1fbaf6..a61a58bf3c 100644 --- a/inc/modules/member/what-payout.php +++ b/inc/modules/member/what-payout.php @@ -109,7 +109,7 @@ ORDER BY p.payout_timestamp DESC", $status = "".$status.""; // Nothing entered must be secured in member/what-payputs.php ! - if ($allow == 'Y') + if ($allow == "Y") { // Banner/Textlink views/clicks request if (!empty($banner)) @@ -206,7 +206,7 @@ ORDER BY p.payout_timestamp DESC", } // Add entry to his tranfer history - if ($allow == 'Y') + if ($allow == "Y") { // Banner/textlink ordered $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_user_payouts (userid, payout_total, payout_id, payout_timestamp, status, target_url, link_text, banner_url) @@ -267,21 +267,12 @@ VALUES (0, 'NEW', 'PAYOUT_REQUEST', '[payout:] ".PAYOUT_REQUEST_ADMIN."', '%s', SEND_EMAIL($GLOBALS['userid'], PAYOUT_REQUEST_MEMBER, $msg_mem); // To admin(s) - if (GET_EXT_VERSION("admins") >= "0.4.1") - { - // Use new method - SEND_ADMIN_EMAILS_PRO(PAYOUT_REQUEST_ADMIN, $admin_tpl, "", $GLOBALS['userid']); - } - else - { - // Use old method - SEND_ADMIN_EMAILS(PAYOUT_REQUEST_ADMIN, $msg_adm); - } + SEND_ADMIN_NOTIFICATION(PAYOUT_REQUEST_ADMIN, $admin_tpl, "", $GLOBALS['userid']); // Load template and output it LOAD_TEMPLATE("admin_settings_saved", false, PAYOUT_REQUEST_SENT); } - elseif ($allow == 'Y') + elseif ($allow == "Y") { // Generate banner order form LOAD_TEMPLATE("member_payout_form_banner");