mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +00:00
[feature/system-cron] coding guidelines adjustments
PHPBB3-9596
This commit is contained in:
parent
e48b850ab5
commit
4302dab5fa
2 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,7 @@ class phpbb_cron_task_core_prune_all_forums extends phpbb_cron_task_base
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx, $db;
|
global $phpbb_root_path, $phpEx, $db;
|
||||||
|
|
||||||
if (!function_exists('auto_prune'))
|
if (!function_exists('auto_prune'))
|
||||||
{
|
{
|
||||||
include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
|
include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
|
||||||
|
|
|
@ -196,7 +196,8 @@ if ($forum_data['forum_topics_per_page'])
|
||||||
if (!$config['use_system_cron'])
|
if (!$config['use_system_cron'])
|
||||||
{
|
{
|
||||||
$task = $cron->instantiate_task('cron_task_core_prune_forum', $forum_data);
|
$task = $cron->instantiate_task('cron_task_core_prune_forum', $forum_data);
|
||||||
if ($task && $task->is_ready()) {
|
if ($task && $task->is_ready())
|
||||||
|
{
|
||||||
$url = $task->get_url();
|
$url = $task->get_url();
|
||||||
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />');
|
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue