// Bonus is not given by default ;-)
$bonus = FALSE;
- if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (getConfig('include_bonus_login') == 'Y')) {
+ if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (getIncludeBonusLogin() == 'Y')) {
// Update last login if far enougth away
// @TODO This query isn't right, it will only update if the user was for a longer time away!
SQL_QUERY_ESC('UPDATE
} // END - if
// Add more columns only when the corresponding configuration is enabled, too
- if (getConfig('include_bonus_click') == 'Y') $add .= ' + `turbo_bonus`';
- if (getConfig('include_bonus_login') == 'Y') $add .= ' + `login_bonus`';
- if (getConfig('include_bonus_order') == 'Y') $add .= ' + `bonus_order`';
- if (getConfig('include_bonus_stats') == 'Y') $add .= ' + `bonus_stats`';
- if (getConfig('include_bonus_ref') == 'Y') $add .= ' + `bonus_ref`';
+ if (getIncludeBonusClick() == 'Y') $add .= ' + `turbo_bonus`';
+ if (getIncludeBonusLogin() == 'Y') $add .= ' + `login_bonus`';
+ if (getIncludeBonusOrder() == 'Y') $add .= ' + `bonus_order`';
+ if (getIncludeBonusRef() == 'Y') $add .= ' + `bonus_ref`';
+ if (getIncludeBonusStats() == 'Y') $add .= ' + `bonus_stats`';
// Return $add
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');