diff options
| author | LEZY Thomas <thomas.gif.91@gmail.com> | 2014-05-29 17:03:34 +0200 |
|---|---|---|
| committer | LEZY Thomas <thomas.gif.91@gmail.com> | 2014-05-29 17:03:34 +0200 |
| commit | 79bdcdf9887ee4295f1cf2318a6819bd8ec8e1b0 (patch) | |
| tree | 3276b475cecc3149e08c1b228c65b64c2b87396c /phpBB/phpbb/console/command | |
| parent | c17a1e92c5d63beb0f7f602a061c33a9eb093639 (diff) | |
| download | forums-79bdcdf9887ee4295f1cf2318a6819bd8ec8e1b0.tar forums-79bdcdf9887ee4295f1cf2318a6819bd8ec8e1b0.tar.gz forums-79bdcdf9887ee4295f1cf2318a6819bd8ec8e1b0.tar.bz2 forums-79bdcdf9887ee4295f1cf2318a6819bd8ec8e1b0.tar.xz forums-79bdcdf9887ee4295f1cf2318a6819bd8ec8e1b0.zip | |
[ticket/12597] Fix various mistakes
Typing mistakes
Coding style issue
Verbose mode messag
PHPBB3-12597
Diffstat (limited to 'phpBB/phpbb/console/command')
| -rw-r--r-- | phpBB/phpbb/console/command/cron/run.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/phpbb/console/command/cron/run.php b/phpBB/phpbb/console/command/cron/run.php index 0da4d7c86d..cb304d9161 100644 --- a/phpBB/phpbb/console/command/cron/run.php +++ b/phpBB/phpbb/console/command/cron/run.php @@ -115,7 +115,8 @@ class run extends \phpbb\console\command\command { $run_tasks = $this->cron_manager->find_all_ready_tasks(); - if ($run_tasks) { + if ($run_tasks) + { foreach ($run_tasks as $task) { if ($input->getOption('verbose')) @@ -128,7 +129,10 @@ class run extends \phpbb\console\command\command } 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(); } @@ -154,7 +158,7 @@ class run extends \phpbb\console\command\command { 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(); |
