More globals rewritten, see #100
[mailer.git] / inc / pool / pool-bonus.php
index 7c295b2f340003af05a8499a766fb426cf1b2d42..e385882fb297c25f65ab357a86702d47655a6842 100644 (file)
@@ -47,8 +47,6 @@ if (defined('__DAILY_RESET')) {
 }
 
 // Need this here
-global $REPLACER;
-
 // Only send bonus mail when bonus extension is active and maximum send-mails is not reached
 if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
        // Do we need to send out bonus mails?
@@ -101,7 +99,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
                                        // Mark this user as "spammed" ;-) And place a line for him...
                                        if (REMOVE_RECEIVER($dummy, $key, $uid, $DATA['id'], $DATA['id'], true) == "done") {
                                                // Replace text variables
-                                               foreach ($REPLACER as $key => $value) {
+                                               foreach ($GLOBALS['replacer'] as $key => $value) {
                                                        if (isset($DATA[$key])) $DATA['text'] = str_replace($value, $DATA[$key], $DATA['text']);
                                                } // END - foreach