mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
Add some output to cron.php
This commit is contained in:
parent
e6a5f9712d
commit
d77047f62c
@ -29,6 +29,9 @@ if ($cron_key != Settings::get('cron_key')) {
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Determine use or not quiet mode
|
||||||
|
$quiet = isset($_GET['q']);
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
// Run cron jobs of the core
|
// Run cron jobs of the core
|
||||||
@ -46,4 +49,9 @@ $dispatcher->triggerEvent('cronRun');
|
|||||||
Settings::set('_last_cron_run', time());
|
Settings::set('_last_cron_run', time());
|
||||||
Settings::update();
|
Settings::update();
|
||||||
|
|
||||||
|
if (! $quiet) {
|
||||||
|
// TODO: May be localize it
|
||||||
|
echo('All cron jobs done.');
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user