mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Removed legacy code from transports (#10081)
This commit is contained in:
committed by
Tony Murray
parent
c76115bf46
commit
d31a551464
@@ -43,26 +43,12 @@ class Pushover extends Transport
|
||||
{
|
||||
public function deliverAlert($obj, $opts)
|
||||
{
|
||||
if (empty($this->config)) {
|
||||
return $this->deliverAlertOld($obj, $opts);
|
||||
}
|
||||
$pushover_opts = $this->config;
|
||||
$pushover_opts['options'] = $this->parseUserOptions($this->config['options']);
|
||||
|
||||
return $this->contactPushover($obj, $pushover_opts);
|
||||
}
|
||||
|
||||
public function deliverAlertOld($obj, $opts)
|
||||
{
|
||||
foreach ($opts as $api) {
|
||||
$response = $this->contactPushover($obj, $api);
|
||||
if ($response !== true) {
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function contactPushover($obj, $api)
|
||||
{
|
||||
$data = array();
|
||||
|
Reference in New Issue
Block a user