diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php index 879f68b2aa9..d5f1fc28d01 100644 --- a/lib/portfolio/exporter.php +++ b/lib/portfolio/exporter.php @@ -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); }