mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-65970-master' of git://github.com/jleyva/moodle
This commit is contained in:
commit
564a6e8650
1 changed files with 2 additions and 0 deletions
|
@ -117,6 +117,8 @@ class message_output_airnotifier extends message_output {
|
|||
$header = array('Accept: application/json', 'X-AN-APP-NAME: ' . $CFG->airnotifierappname,
|
||||
'X-AN-APP-KEY: ' . $CFG->airnotifieraccesskey);
|
||||
$curl = new curl;
|
||||
// Push notifications are supposed to be instant, do not wait to long blocking the execution.
|
||||
$curl->setopt(array('CURLOPT_TIMEOUT' => 2, 'CURLOPT_CONNECTTIMEOUT' => 2));
|
||||
$curl->setHeader($header);
|
||||
|
||||
$params = array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue