mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed slack options not showing in the webui (#9107)
* Fixed slack options not showing in the webui * Update config extraction too
This commit is contained in:
@@ -33,7 +33,7 @@ class Slack extends Transport
|
|||||||
return $this->deliverAlertOld($obj, $opts);
|
return $this->deliverAlertOld($obj, $opts);
|
||||||
}
|
}
|
||||||
$slack_opts['url'] = $this->config['slack-url'];
|
$slack_opts['url'] = $this->config['slack-url'];
|
||||||
foreach (explode(PHP_EOL, $this->config['options']) as $option) {
|
foreach (explode(PHP_EOL, $this->config['slack-options']) as $option) {
|
||||||
list($k,$v) = explode('=', $option);
|
list($k,$v) = explode('=', $option);
|
||||||
$slack_opts[$k] = $v;
|
$slack_opts[$k] = $v;
|
||||||
}
|
}
|
||||||
@@ -98,7 +98,7 @@ class Slack extends Transport
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'title' => 'Slack Options',
|
'title' => 'Slack Options',
|
||||||
'name' => 'options',
|
'name' => 'slack-options',
|
||||||
'descr' => 'Slack Options',
|
'descr' => 'Slack Options',
|
||||||
'type' => 'textarea',
|
'type' => 'textarea',
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user