phpBB

Code Changes

File: phpbb/console/command/cron/run.php

  Unmodified   Added   Modified   Removed
Line 13Line 13

namespace phpbb\console\command\cron;



namespace phpbb\console\command\cron;


 
use phpbb\exception\runtime_exception;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;

Line 50Line 51
		$this
->setName('cron:run')
->setDescription($this->user->lang('CLI_DESCRIPTION_CRON_RUN'))

		$this
->setName('cron:run')
->setDescription($this->user->lang('CLI_DESCRIPTION_CRON_RUN'))

 
			->setHelp($this->user->lang('CLI_HELP_CRON_RUN'))

			->addArgument('name', InputArgument::OPTIONAL, $this->user->lang('CLI_DESCRIPTION_CRON_RUN_ARGUMENT_1'))
;
}

			->addArgument('name', InputArgument::OPTIONAL, $this->user->lang('CLI_DESCRIPTION_CRON_RUN_ARGUMENT_1'))
;
}

Line 92Line 94
		}
else
{

		}
else
{

			$output->writeln('<error>' . $this->user->lang('CRON_LOCK_ERROR') . '</error>');
return 1;

			throw new runtime_exception('CRON_LOCK_ERROR', array(), null, 1);


		}
}


		}
}


Line 164Line 165
		}
else
{

		}
else
{

			$output->writeln('<error>' . $this->user->lang('CRON_NO_SUCH_TASK', $task_name) . '</error>');
return 2;

			throw new runtime_exception('CRON_NO_SUCH_TASK', array( $task_name), null, 2);


		}
}
}

		}
}
}