$result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_sponsor_data
SET points_amount=points_amount+%s, ref_count=ref_count+1
WHERE id='%s' LIMIT 1",
- array($_CONFIG['sponsor_ref_points'], bigintval($refid)), __FILE__, __LINE__);
+ array(getConfig('sponsor_ref_points'), bigintval($refid)), __FILE__, __LINE__);
// Whas that update fine?
if (SQL_AFFECTEDROWS() == 1) {
if ($REFERRAL['receive_warnings'] == "Y") {
// Translate some data
$REFERRAL['points'] = TRANSLATE_COMMA($REFERRAL['points']);
- $REFERRAL['ref_points'] = TRANSLATE_COMMA($_CONFIG['sponsor_ref_points']);
+ $REFERRAL['ref_points'] = TRANSLATE_COMMA(getConfig('sponsor_ref_points'));
$REFERRAL['gender'] = TRANSLATE_GENDER($REFERRAL['gender']);
// Send notification to referal