Script rewritten to setConfigEntry(), getConfig() and incrementConfigEntry()
[mailer.git] / inc / modules / admin / what-config_bonus.php
index eacf938ace1f6b4002ed56fcb9cc0d3dbf3b3f01..b50b55ee0a70876195a67509884bef489aeb6d7c 100644 (file)
@@ -64,9 +64,9 @@ if (isset($_POST['ok'])) {
        ADMIN_SAVE_SETTINGS($_POST);
 
        // Remember new settings
-       $_CONFIG['bonus_active']    = $_POST['bonus_active'];
-       $_CONFIG['bonus_en_notify'] = $_POST['bonus_en_notify'];
-       $_CONFIG['bonus_di_notify'] = $_POST['bonus_di_notify'];
+       setConfigEntry('bonus_active'   , $_POST['bonus_active']);
+       setConfigEntry('bonus_en_notify', $_POST['bonus_en_notify']);
+       setConfigEntry('bonus_di_notify', $_POST['bonus_di_notify']);
 } else {
        // Prepare contants for the template
        define('__LOGIN_VALUE' , TRANSLATE_COMMA(getConfig('login_bonus')        , false));