Skip to content
Snippets Groups Projects
Commit fb8c3c2c authored by Daniel Jagszent's avatar Daniel Jagszent
Browse files

Make `cron` signals conform to documentation.

The [signal documentation]
(https://github.com/osTicket/osTicket/blob/develop/setup/doc/signals.md)
for the `cron` signal states that the context is `null`. But it was
missing until now (and the `$data` parameter was wrongly forwarded as
`$object`)
parent afd63e11
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ class Cron {
self::MaybeOptimizeTables();
$data = array('autocron'=>false);
Signal::send('cron', $data);
Signal::send('cron', null, $data);
}
}
?>
......@@ -66,7 +66,7 @@ if($cfg && $cfg->isAutoCronEnabled()) { //ONLY fetch tickets if autocron is enab
}
$data = array('autocron'=>true);
Signal::send('cron', $data);
Signal::send('cron', null, $data);
ob_end_clean();
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment