Mahor rewrite:
[mailer.git] / inc / modules / admin / what-config_sponsor.php
index cdfaa8f280293e6b29471b21c296ada498812ab1..ba900de273cca9270756feea1b1693949de8dd25 100644 (file)
@@ -49,8 +49,8 @@ if (isset($_POST['ok'])) {
        ADMIN_SAVE_SETTINGS($_POST);
 } else {
        // Remember config data in constants for the template
-       define('__SPONSOR_MIN_POINTS', $_CONFIG['sponsor_min_points']);
-       define('__SPONSOR_REF_POINTS', $_CONFIG['sponsor_ref_points']);
+       define('__SPONSOR_MIN_POINTS', getConfig('sponsor_min_points'));
+       define('__SPONSOR_REF_POINTS', getConfig('sponsor_ref_points'));
 
        // Load template
        LOAD_TEMPLATE("admin_config_sponsor");