Mahor rewrite:
[mailer.git] / inc / extensions / ext-beg.php
index d096f171414c9b2fbe77a182f1e4c893e6ff1134..2a8013daf2b8089729defc1c43b41e65c82c9259 100644 (file)
@@ -264,12 +264,12 @@ case "test": // For testing purposes. For details see file inc/modules/admin/wha
 
 default: // Do stuff when extension is loaded
        // Remove old entries
-       $OLD = $_CONFIG['beg_timeout'];
-       if ($_CONFIG['beg_uid_timeout'] > $OLD) $OLD = $_CONFIG['beg_uid_timeout'];
+       $OLD = getConfig('beg_timeout');
+       if (getConfig('beg_uid_timeout') > $OLD) $OLD = getConfig('beg_uid_timeout');
        $result_ext = SQL_QUERY("DELETE LOW_PRIORITY FROM `"._MYSQL_PREFIX."_beg_ips` WHERE timeout < (UNIX_TIMESTAMP() -".($OLD + 60*60).")", __FILE__, __LINE__);
 
        // Check for beg rallye is active and send mails out
-       if (($_CONFIG['beg_rallye'] == "Y") && ($_CONFIG['beg_new_mem_notify'] == "Y")) {
+       if ((getConfig('beg_rallye') == "Y") && (getConfig('beg_new_mem_notify') == "Y")) {
                // Include file for sending out mails
                $INC_POOL[] = sprintf("%sinc/mails/beg_mails.php", PATH);
        } // END - if