Add some output to cron.php

This commit is contained in:
Dmitriy Simushev 2013-05-07 13:38:37 +00:00
parent e6a5f9712d
commit d77047f62c

View File

@ -29,6 +29,9 @@ if ($cron_key != Settings::get('cron_key')) {
die();
}
// Determine use or not quiet mode
$quiet = isset($_GET['q']);
set_time_limit(0);
// Run cron jobs of the core
@ -46,4 +49,9 @@ $dispatcher->triggerEvent('cronRun');
Settings::set('_last_cron_run', time());
Settings::update();
if (! $quiet) {
// TODO: May be localize it
echo('All cron jobs done.');
}
?>