Skip to content

Commit

Permalink
Merge branch 'MDL-48989-master' of git://github.com/jleyva/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Feb 3, 2015
2 parents bd8c9bc + 5785421 commit 26faad6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions message/output/airnotifier/message_output_airnotifier.php
Expand Up @@ -81,6 +81,11 @@ public function send_message($eventdata) {
$extra->date = (!empty($eventdata->timecreated)) ? $eventdata->timecreated : time();
$extra->notification = (!empty($eventdata->notification)) ? 1 : 0;

// Site name.
$site = get_site();
$extra->sitefullname = format_string($site->fullname);
$extra->siteshortname = format_string($site->shortname);

// We are sending to message to all devices.
$airnotifiermanager = new message_airnotifier_manager();
$devicetokens = $airnotifiermanager->get_user_devices($CFG->airnotifiermobileappname, $eventdata->userto->id);
Expand Down

0 comments on commit 26faad6

Please sign in to comment.