MDL-67758 airnotifier: Send wwwroot to airnotifier

This commit is contained in:
Dani Palou 2020-02-10 11:46:40 +01:00
parent cb38ab1e39
commit f95afbaf48

View File

@ -102,6 +102,9 @@ class message_output_airnotifier extends message_output {
$extra->fullmessagehtml = clean_param($extra->fullmessagehtml, PARAM_NOTAGS);
}
// Send wwwroot to airnotifier.
$extra->wwwroot = $CFG->wwwroot;
// We are sending to message to all devices.
$airnotifiermanager = new message_airnotifier_manager();
$devicetokens = $airnotifiermanager->get_user_devices($CFG->airnotifiermobileappname, $eventdata->userto->id);