mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 16:44:11 +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();
|
||||
}
|
||||
|
||||
// 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.');
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user