]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_bonus.php
Typo fixed
[mailer.git] / inc / modules / admin / what-config_bonus.php
index f8878843f5b44a3c4e88642c5de1d2f482666aff..143885c6994b4bec08e5bb7845063f4574814829 100644 (file)
@@ -71,13 +71,13 @@ if (isFormSent()) {
        setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify'));
 } else {
        // Transfer options to template
-       $content['form_selection'] = addMemberSelectionBox(getBonusUserId(), false, true, true, 'bonus_userid');
+       $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 = '<ol start="2">';
@@ -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);
 }