mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
[feature/dic] Rename occurances of $container to $phpbb_container
PHPBB3-10739
This commit is contained in:
@@ -61,7 +61,7 @@ function do_cron($cron_lock, $run_tasks)
|
|||||||
|
|
||||||
if ($config['use_system_cron'])
|
if ($config['use_system_cron'])
|
||||||
{
|
{
|
||||||
$cron = $container->get('cron.manager');
|
$cron = $phpbb_container->get('cron.manager');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -71,7 +71,7 @@ else
|
|||||||
output_image();
|
output_image();
|
||||||
}
|
}
|
||||||
|
|
||||||
$cron_lock = $container->get('cron.lock_db');
|
$cron_lock = $phpbb_container->get('cron.lock_db');
|
||||||
if ($cron_lock->acquire())
|
if ($cron_lock->acquire())
|
||||||
{
|
{
|
||||||
if ($config['use_system_cron'])
|
if ($config['use_system_cron'])
|
||||||
|
@@ -193,7 +193,7 @@ if ($forum_data['forum_topics_per_page'])
|
|||||||
// Do the forum Prune thang - cron type job ...
|
// Do the forum Prune thang - cron type job ...
|
||||||
if (!$config['use_system_cron'])
|
if (!$config['use_system_cron'])
|
||||||
{
|
{
|
||||||
$cron = $container->get('cron.manager');
|
$cron = $phpbb_container->get('cron.manager');
|
||||||
|
|
||||||
$task = $cron->find_task('cron.task.core.prune_forum');
|
$task = $cron->find_task('cron.task.core.prune_forum');
|
||||||
$task->set_forum_data($forum_data);
|
$task->set_forum_data($forum_data);
|
||||||
|
Reference in New Issue
Block a user