MDL-41041 portfolio: Temporary solution for event portfolio_send
As we have deprecated events_trigger(), the portfolio cannot use it any more. Though there is no easy solution to get rid of this event as it is used to register a cron job. MDL-42541 has been raised to refactor the portfolio code to solve this problem. In the meantime events_trigger_legacy() will be used.
This commit is contained in:
@@ -436,7 +436,8 @@ class portfolio_exporter {
|
||||
public function process_stage_queueorwait() {
|
||||
$wait = $this->instance->get_export_config('wait');
|
||||
if (empty($wait)) {
|
||||
events_trigger('portfolio_send', $this->id);
|
||||
// TODO MDL-42541 Removing usage of events_trigger().
|
||||
events_trigger_legacy('portfolio_send', $this->id);
|
||||
$this->queued = true;
|
||||
return $this->process_stage_finished(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user