$mailData['stats_id'] = bigintval($stats_id);
// Prepare content
- $mailData['time'] = getPaymentPoints($mailData['payment_id'], 'time');
- $mailData['points'] = getPaymentPoints($mailData['payment_id'], 'payment');
+ $mailData['time'] = getPaymentData($mailData['payment_id'], 'time');
+ $mailData['points'] = getPaymentData($mailData['payment_id'], 'payment');
// Load message template
$mailText = loadEmailTemplate('member_user_pool_normal', $mailData, bigintval($userid));
'cat_id' => $mailData['cat_id'],
'text' => $mailData['text'],
'url' => $mailData['url'],
- 'expiration' => '{%pipe,createFancyTime=' . getPaymentPoints($mailData['payment_id'], 'time') . '%}'
+ 'expiration' => '{%pipe,createFancyTime=' . getPaymentData($mailData['payment_id'], 'time') . '%}'
);
// Yes we do, so we notify admin and sender about fully sent mail!
// Is the userid set?
if (isValidUserId($userid)) {
// User does not exists, pay points back
- $points = getPaymentPoints($mailData['payment_id']);
+ $points = getPaymentData($mailData['payment_id']);
initReferralSystem();
addPointsThroughReferralSystem('pool_payback', $mailData['sender_userid'], $points);