mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[feature/system-cron] remove conditional includes in favour of autoloading
PHPBB3-9596
This commit is contained in:
committed by
Oleg Pudeyev
parent
1bfbcb8b7e
commit
c9bd1b392d
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prune all forums cron task.
|
||||
*
|
||||
|
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prune one forum cron task.
|
||||
*
|
||||
|
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Queue cron task. Sends email and jabber messages queued by other scripts.
|
||||
*
|
||||
|
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tidy cache cron task.
|
||||
*
|
||||
|
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tidy database cron task.
|
||||
*
|
||||
|
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tidy search cron task.
|
||||
*
|
||||
|
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tidy sessions cron task.
|
||||
*
|
||||
|
@@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!class_exists('cron_task_base'))
|
||||
{
|
||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tidy warnings cron task.
|
||||
*
|
||||
|
Reference in New Issue
Block a user