diff --git a/src/messenger/webim/cron.php b/src/messenger/webim/cron.php index b714b0ac..b18ecca3 100644 --- a/src/messenger/webim/cron.php +++ b/src/messenger/webim/cron.php @@ -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.'); +} + ?> \ No newline at end of file