array($points, bigintval(getRequestParameter('id'))), __FILE__, __LINE__);
// Remember points /reason for the template
- $content['points'] = translateComma($points);
+ $content['points'] = $points;
$content['reason'] = secureString(postRequestParameter('reason'));
// Send email
$message = loadEmailTemplate('sponsor_add_points', $content);
- sendEmail($content['email'], '{--ADMIN_SPONSOR_ADD_POINTS_SUBJ--}', $message);
+ sendEmail($content['email'], '{--ADMIN_SPONSOR_ADD_POINTS_SUBJECT--}', $message);
$message = '{--ADMIN_SPONSOR_POINTS_ADDED--}';
} else {
// No points entered to add!
array($points, bigintval(getRequestParameter('id'))), __FILE__, __LINE__);
// Remember points /reason for the template
- $content['points'] = translateComma($points);
+ $content['points'] = $points;
$content['reason'] = secureString(postRequestParameter('reason'));
// Send email
$message = loadEmailTemplate('sponsor_sub_points', $content);
- sendEmail($content['email'], '{--ADMIN_SPONSOR_SUB_POINTS_SUBJ--}', $message);
+ sendEmail($content['email'], '{--ADMIN_SPONSOR_SUB_POINTS_SUBJECT--}', $message);
$message = '{--ADMIN_SPONSOR_POINTS_SUBTRACTED--}';
} else {
// No points entered to add!
// Output message
loadTemplate('admin_settings_saved', false, $message);
} // END - if
- } elseif (isFileReadable(sprintf("%stemplates/%s/html/admin/%s.tpl", getConfig('PATH'), getLanguage(), $TPL))) {
+ } elseif (isFileReadable(sprintf("%stemplates/%s/html/admin/%s.tpl", getPath(), getLanguage(), $TPL))) {
// Create mailto link
$content['contact'] = '<a href="' . generateEmailLink($content['email'], 'sponsor_data') . '">' . $content['surname'] . ' ' . $content['family'] . '</a>';