]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-bonus.php
Wrapper function isBegRallyeEnabled() introduced, rewrites to make usage of isExtensi...
[mailer.git] / inc / extensions / ext-bonus.php
index e7d2cf60ecb5441bd7d3fa164bd97605d820a1d1..b579393960212367969961a2707ae23ced0c8e08 100644 (file)
@@ -579,7 +579,7 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC");
 
        case 'init': // Do stuff when extension is initialized
                // Check for bonus rallye is active and send mails out
-               if ((getExtensionVersion('bonus') >= '0.9.1') && (isBonusRallyeActive()) && (getConfig('bonus_new_member_notify') == 'Y')) {
+               if ((isExtensionInstalledAndNewer('bonus', '0.9.1')) && (isBonusRallyeActive()) && (getConfig('bonus_new_member_notify') == 'Y')) {
                        // Include file for sending out mails
                        addIncludeToPool('notify', 'inc/mails/bonus_mails.php');
                } // END - if