mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12597] Fix various mistakes
Typing mistakes Coding style issue Verbose mode messag PHPBB3-12597
This commit is contained in:
parent
c17a1e92c5
commit
7508d2b546
1 changed files with 7 additions and 3 deletions
|
@ -115,7 +115,8 @@ class run extends \phpbb\console\command\command
|
||||||
{
|
{
|
||||||
$run_tasks = $this->cron_manager->find_all_ready_tasks();
|
$run_tasks = $this->cron_manager->find_all_ready_tasks();
|
||||||
|
|
||||||
if ($run_tasks) {
|
if ($run_tasks)
|
||||||
|
{
|
||||||
foreach ($run_tasks as $task)
|
foreach ($run_tasks as $task)
|
||||||
{
|
{
|
||||||
if ($input->getOption('verbose'))
|
if ($input->getOption('verbose'))
|
||||||
|
@ -128,7 +129,10 @@ class run extends \phpbb\console\command\command
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$output->writeln('<info>' . $this->user->lang('CRON_NO_TASK') . '</info>');
|
if ($input->getOption('verbose'))
|
||||||
|
{
|
||||||
|
$output->writeln('<info>' . $this->user->lang('CRON_NO_TASK') . '</info>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$this->lock_db->release();
|
$this->lock_db->release();
|
||||||
}
|
}
|
||||||
|
@ -154,7 +158,7 @@ class run extends \phpbb\console\command\command
|
||||||
{
|
{
|
||||||
if ($input->getOption('verbose'))
|
if ($input->getOption('verbose'))
|
||||||
{
|
{
|
||||||
$output->writeln('<info>' . $this->user->lang('RUNNING_TASK', $task_nameœ) . '</info>');
|
$output->writeln('<info>' . $this->user->lang('RUNNING_TASK', $task_name) . '</info>');
|
||||||
}
|
}
|
||||||
|
|
||||||
$task->run();
|
$task->run();
|
||||||
|
|
Loading…
Add table
Reference in a new issue