mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update convert-template.inc.php (#8980)
This commit is contained in:
committed by
Tony Murray
parent
f29b286f7f
commit
5b24934f8a
@@ -71,13 +71,13 @@ foreach (explode(PHP_EOL, $vars['template']) as $line) {
|
||||
'/%([\w\d]+)/',// Replaces %anything
|
||||
];
|
||||
$replace = [
|
||||
'@if ($alert->\1) ',
|
||||
' @if ($alert->\1) ',
|
||||
' @else ',
|
||||
' @endif ',
|
||||
'@foreach ($alert->faults as $key => $value)',
|
||||
'@foreach ($alert->contacts as $key => $value)',
|
||||
' @foreach ($alert->faults as $key => $value)',
|
||||
' @foreach ($alert->contacts as $key => $value)',
|
||||
' @endforeach ',
|
||||
'@php echo \1; @endphp ',
|
||||
' @php echo \1; @endphp ',
|
||||
'{{ $value[\'string\'] }}',
|
||||
'{{ $\1[\'\2\'] }}',
|
||||
'{{ $alert->\1 }}',
|
||||
|
||||
Reference in New Issue
Block a user