From f31c599a2b82f39fd97f76b3670144d10035acf3 Mon Sep 17 00:00:00 2001 From: Matheus Garcia Date: Mon, 14 May 2018 15:37:44 -0300 Subject: [PATCH] Ajustes para Moodle 3.4 --- lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.php b/lib.php index 1d0e2df..0341b5e 100644 --- a/lib.php +++ b/lib.php @@ -284,7 +284,7 @@ class enrol_ilbead_plugin extends enrol_plugin { $timestart = time(); if ($instance->enrolperiod) { $timeend = date("Y/m/d", (string)($timestart + $instance->enrolperiod)); - list($year, $month, $day) = split("/", $timeend); + list($year, $month, $day) = explode("/", $timeend); $timeend = (int)strtotime("$year-$month-$day 23:59:59"); } else { @@ -414,7 +414,7 @@ class enrol_ilbead_plugin extends enrol_plugin { if ($rusers) { $contact = reset($rusers); } else { - $contact = generate_email_supportuser(); + $contact = core_user::get_support_user(); } // Directly emailing welcome message rather than using messaging.