mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
[feature/system-cron] remove conditional includes in favour of autoloading
PHPBB3-9596
This commit is contained in:
parent
1bfbcb8b7e
commit
c9bd1b392d
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_wrapper'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_wrapper.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cron manager class.
|
* Cron manager class.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_base'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prune all forums cron task.
|
* Prune all forums cron task.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_base'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prune one forum cron task.
|
* Prune one forum cron task.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
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.
|
* Queue cron task. Sends email and jabber messages queued by other scripts.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_base'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tidy cache cron task.
|
* Tidy cache cron task.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_base'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tidy database cron task.
|
* Tidy database cron task.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_base'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tidy search cron task.
|
* Tidy search cron task.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_base'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tidy sessions cron task.
|
* Tidy sessions cron task.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('cron_task_base'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task_base.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tidy warnings cron task.
|
* Tidy warnings cron task.
|
||||||
*
|
*
|
||||||
|
@ -16,11 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!interface_exists('cron_task'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cron task base class. Provides sensible defaults for cron tasks
|
* Cron task base class. Provides sensible defaults for cron tasks
|
||||||
* and partially implements cron task interface, making writing cron tasks easier.
|
* and partially implements cron task interface, making writing cron tasks easier.
|
||||||
|
@ -16,12 +16,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We use parametrized_cron_task in is_parametrized
|
|
||||||
if (!interface_exists('cron_task'))
|
|
||||||
{
|
|
||||||
include($phpbb_root_path . 'includes/cron/cron_task.' . $phpEx);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cron task wrapper class.
|
* Cron task wrapper class.
|
||||||
* Enhances cron tasks with convenience methods that work identically for all tasks.
|
* Enhances cron tasks with convenience methods that work identically for all tasks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user