X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_bonus.php;h=143885c6994b4bec08e5bb7845063f4574814829;hb=00283a82c807a00d66bd5811d41992bb3b059996;hp=5f2a8d9e4638b7362d387e2526e59a5c66dfef06;hpb=964a3b539e335f6d70e7779630fd3d25fd38398d;p=mailer.git diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index 5f2a8d9e46..143885c699 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -74,10 +74,10 @@ if (isFormSent()) { $content['bonus_userid'] = addMemberSelectionBox(getBonusUserid(), false, true, true, 'bonus_userid'); // Initialize array for the points list - $RANKS = explode(';', getConfig('turbo_rates')); + $RANKS = explode(';', getTurboRates()); // Automatically calculate bonus points for ranks 2 and 3 when not set - if (getConfig('turbo_rates') == '') $RANKS = array(round(getConfig('turbo_bonus') / 2), round(getConfig('turbo_bonus') / 4)); + if (getTurboRates() == '') $RANKS = array(round(getConfig('turbo_bonus') / 2), round(getConfig('turbo_bonus') / 4)); // Generate list $OUT = '
    '; @@ -106,13 +106,6 @@ if (isFormSent()) { $content['bonus_timeout_selection'] = createConfigurationTimeSelections('bonus_timeout' , 'WDh'); $content['wait_selection'] = createConfigurationTimeSelections('bonus_notify_wait', 'ms' ); - // Init Y/N selections - foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','enable_notify','disable_notify','new_member_notify','include_own') as $entry) { - $content[$entry . '_y'] = ''; - $content[$entry . '_n'] = ''; - $content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"'; - } // END - foreach - // Load final template loadTemplate('admin_config_bonus', false, $content); }