Update convert-template.inc.php (#8980)

This commit is contained in:
Neil Lathwood
2018-08-03 23:13:03 +01:00
committed by Tony Murray
parent f29b286f7f
commit 5b24934f8a

View File

@@ -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 }}',