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:
Frederic Massart
2013-10-25 14:54:34 +08:00
parent 2d2c5f36c4
commit 862ca7dbc1
+2 -1
View File
@@ -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);
}