mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Refactor Api transport to use Guzzle (and new variables syntax) (#10070)
* Allow new {{ $xxxx }} syntax * Properly handle urlencode on variable values without braking the URL, and uses Blades * Doc Doc typo * use Guzzle for HTTP requests * Add Basic auth support * Doc update * clean * Revert Blades, but keep the {{ $xxxx }} syntax * Revert Blades, but keep the {{ $xxxx }} syntax * Init Vars and comments * Notifications * api-options are not required * Update notifications.rss
This commit is contained in:
committed by
Neil Lathwood
parent
fce185b55c
commit
55f67f42fe
@@ -65,7 +65,9 @@ foreach (dbFetchRows($query) as $transport) {
|
||||
}
|
||||
|
||||
$val = $transport_config[$item['name']];
|
||||
|
||||
if ($item['type'] == 'password') {
|
||||
$val = '<b>••••••••</b>';
|
||||
}
|
||||
// Match value to key name for select inputs
|
||||
if ($item['type'] == 'select') {
|
||||
$val = array_search($val, $item['options']);
|
||||
|
Reference in New Issue
Block a user