case 'init': // Do stuff when extension is initialized
// Check for bonus rallye is active and send mails out
- if ((isExtensionInstalledAndNewer('bonus', '0.9.1')) && (isBonusRallyeActive()) && (getConfig('bonus_new_member_notify') == 'Y')) {
+ if ((isBonusRallyeActive()) && (isBonusNewMemberNotifyEnabled())) {
// Include file for sending out mails
addIncludeToPool('notify', 'inc/mails/bonus_mails.php');
} // END - if