update - notifymyandroid.com - title from configuration

This commit is contained in:
Blonďák 2017-09-04 20:19:03 +02:00
parent 70ea8f1609
commit f6bfc10b90

View File

@ -22,13 +22,14 @@
} }
public function notify($message, $severity = 'info', $event = null){ public function notify($message, $severity = 'info', $event = null){
global $setting;
curl_setopt_array($ch = curl_init(), array( curl_setopt_array($ch = curl_init(), array(
CURLOPT_URL => "https://www.notifymyandroid.com/publicapi/notify", CURLOPT_URL => "https://www.notifymyandroid.com/publicapi/notify",
CURLOPT_POST => true, CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query($data = array( CURLOPT_POSTFIELDS => http_build_query($data = array(
"apikey" => $this->apiKey, "apikey" => $this->apiKey,
"application" => "CryptoGlance", "application" => $setting->getValue('website_title')?:"PHP-MPOS",
"description" => $message, "description" => $message,
"content-type" => "text/html", "content-type" => "text/html",
"event" => $event, "event" => $event,