mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/dic] Rename occurances of $container to $phpbb_container
PHPBB3-10739
This commit is contained in:
parent
3896ee953f
commit
0a5348a137
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue