aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/emailer.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/emailer.php')
-rwxr-xr-xphpBB/includes/emailer.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/emailer.php b/phpBB/includes/emailer.php
index 8deba01c4d..d08ca0f3a6 100755
--- a/phpBB/includes/emailer.php
+++ b/phpBB/includes/emailer.php
@@ -30,11 +30,13 @@ class emailer
function emailer($use_queue = false)
{
+ global $config;
+
$this->use_queue = $use_queue;
if ($use_queue)
{
$this->queue = new Queue();
- $this->queue->init('emailer', 100);
+ $this->queue->init('emailer', $config['email_package_size']);
}
$this->reset();
}
@@ -472,7 +474,7 @@ class Queue
}
//--TEMP
- function queue_filled()
+ function is_queue_filled()
{
if (file_exists($this->cache_file))
{
@@ -579,7 +581,7 @@ class Queue
$sql = "UPDATE " . CONFIG_TABLE . "
SET config_value = '" . time() . "'
WHERE config_name = 'last_queue_run'";
- $db->sql_query();
+ $db->sql_query($sql);
}
function save()