X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_payouts.php;h=b312d6533852f3a03abe0704279273b99026544f;hb=ea6cf3578750b2697b45cab74725396962b56ceb;hp=504dc1a0754b017f0d3ff3109c52d253c5d5f48b;hpb=2e715eb7f3f8ca8d259aacb4cbbddde7d9d18e01;p=mailer.git
diff --git a/inc/modules/admin/what-list_payouts.php b/inc/modules/admin/what-list_payouts.php
index 504dc1a075..b312d65338 100644
--- a/inc/modules/admin/what-list_payouts.php
+++ b/inc/modules/admin/what-list_payouts.php
@@ -60,7 +60,7 @@ if (isGetRequestParameterSet('pid')) {
if (empty($taskId)) $taskId = '0';
} elseif ((empty($userid)) || ($userid == '0')) {
// Cannot obtain member id!
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_USERID--}');
+ displayMessage('{--ADMIN_PAYOUT_FAILED_OBTAIN_USERID--}');
} else {
// Get task id from URL
$taskId = getRequestParameter('task');
@@ -143,14 +143,14 @@ LIMIT 1",
// Output message
if ($data['allow_url'] == 'Y') {
// Banner / Textlink request
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_BANNER_ACCEPTED_NOTIFIED--}');
+ displayMessage('{--ADMIN_PAYOUT_BANNER_ACCEPTED_NOTIFIED--}');
} else {
// Normal request
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_ACCEPTED_NOTIFIED--}');
+ displayMessage('{--ADMIN_PAYOUT_ACCEPTED_NOTIFIED--}');
}
// Finally send mail
- sendEmail(getUserData('email'), '{--MEMBER_PAYOUT_ACCEPTED_SUBJECT--}', $message);
+ sendEmail(getUserData('userid'), '{--MEMBER_PAYOUT_ACCEPTED_SUBJECT--}', $message);
} else {
// Something goes wrong... :-(
$content = implode('
', $ret);
@@ -165,7 +165,7 @@ LIMIT 1",
$content = array(
'task' => $taskId,
'pid' => bigintval(getRequestParameter('pid')),
- 'user' => '' . translateGender(getUserData('gender')) . ' ' . getUserData('surname') . ' ' . getUserData('family') . '',
+ 'user' => '{%pipe,translateGender=' . getUserData('gender') . '%} ' . getUserData('surname') . ' ' . getUserData('family') . '',
);
// Load template
@@ -187,16 +187,16 @@ LIMIT 1",
$message = loadEmailTemplate('member_payout_rejected', postRequestParameter('text'), $userid);
// Output message
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_REJECTED_NOTIFIED--}');
+ displayMessage('{--ADMIN_PAYOUT_REJECTED_NOTIFIED--}');
// Finally send mail
- sendEmail(getUserData('email'), '{--MEMBER_PAYOUT_REJECTED_SUBJECT--}', $message);
+ sendEmail(getUserData('userid'), '{--MEMBER_PAYOUT_REJECTED_SUBJECT--}', $message);
} else {
// Prepare content
$content = array(
'task' => $taskId,
'pid' => bigintval(getRequestParameter('pid')),
- 'user' => '' . translateGender(getUserData('gender')) . ' ' . getUserData('surname') . ' ' . getUserData('family') . '',
+ 'user' => '{%pipe,translateGender=' . getUserData('gender') . '%} ' . getUserData('surname') . ' ' . getUserData('family') . '',
);
// Load template
@@ -204,11 +204,11 @@ LIMIT 1",
}
} else {
// Cannot load user data
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_USERDATA--}');
+ displayMessage('{--ADMIN_PAYOUT_FAILED_OBTAIN_USERDATA--}');
}
} elseif ((empty($taskId)) || ($taskId == '0')) {
// Failed loading task id
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_TASK_ID--}');
+ displayMessage('{--ADMIN_PAYOUT_FAILED_OBTAIN_TASK_ID--}');
}
} else {
if (getRequestParameter('do') == 'delete') {
@@ -272,7 +272,7 @@ ORDER BY
loadTemplate('admin_list_payouts', false, $OUT);
} else {
// No payout requests are sent so far
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_NO_REQUESTS_FOUND--}');
+ displayMessage('{--ADMIN_PAYOUT_NO_REQUESTS_FOUND--}');
}
}