aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 725ebaa563..6947b2d677 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -33,7 +33,6 @@ $user->start();
$user->setup();
$auth->acl($user->data);
-
// Handle marking posts
if ($mark_read == 'forums')
{
@@ -48,6 +47,15 @@ if ($mark_read == 'forums')
trigger_error($message);
}
+// Handle queue - to be placed into common.php ? I think to only check and process at the index is enough. ;)
+// Do not initiate the object, we do not need to do this...
+if (file_exists($phpbb_root_path . 'cache/queue.' . $phpEx))
+{
+ include($phpbb_root_path . 'includes/emailer.'.$phpEx);
+ $queue = new Queue();
+ $queue->process();
+}
+
// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts = $config['num_posts'];
$total_topics = $config['num_topics'];