mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed pushbullet transport (#8963)
* Fixed pushbullet transport * Updated return value
This commit is contained in:
@@ -32,7 +32,7 @@ class Pushbullet extends Transport
|
|||||||
if (!empty($this->config)) {
|
if (!empty($this->config)) {
|
||||||
$opts = $this->config['pushbullet-token'];
|
$opts = $this->config['pushbullet-token'];
|
||||||
}
|
}
|
||||||
return contactPushbullet($obj, $opts);
|
return $this->contactPushbullet($obj, $opts);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function contactPushbullet($obj, $opts)
|
public function contactPushbullet($obj, $opts)
|
||||||
|
@@ -32,7 +32,7 @@ interface Transport
|
|||||||
*
|
*
|
||||||
* @param $alert_data array An array created by DescribeAlert
|
* @param $alert_data array An array created by DescribeAlert
|
||||||
* @param $opts array|true The options from $config['alert']['transports'][$transport]
|
* @param $opts array|true The options from $config['alert']['transports'][$transport]
|
||||||
* @return bool Returns if the call was successful
|
* @return mixed Returns if the call was successful
|
||||||
*/
|
*/
|
||||||
public function deliverAlert($alert_data, $opts);
|
public function deliverAlert($alert_data, $opts);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user