aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/common.php')
-rw-r--r--phpBB/common.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php
index c30742eb9c..36d0d3377f 100644
--- a/phpBB/common.php
+++ b/phpBB/common.php
@@ -229,6 +229,17 @@ if (time() - $config['cache_interval'] >= $config['cache_last_gc'])
}
*/
+// Handle queue.
+if (time() - $config['queue_interval'] >= $config['last_queue_run'])
+{
+ if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx))
+ {
+ include($phpbb_root_path . 'includes/emailer.'.$phpEx);
+ $queue = new Queue();
+ $queue->process();
+ }
+}
+
// Show 'Board is disabled' message
if ($config['board_disable'] && !defined('IN_ADMIN') && !defined('IN_LOGIN'))
{