Internal: Optimize regexp to remove warning

This commit is contained in:
Molkobain
2019-12-10 14:48:00 +01:00
parent 464ee46631
commit 57da9a848d

View File

@@ -245,7 +245,7 @@ class Forms extends AbstractConfiguration
$sXml = preg_replace('/\n.+$/', '', $sXml);
$aFields['layout'] = array(
'type' => (preg_match('/\{\{|\{\#|\{\%/', $sXml) === 1) ? 'twig' : 'xhtml',
'type' => (preg_match('/{{|{#|{%/', $sXml) === 1) ? 'twig' : 'xhtml',
'content' => $sXml,
);
}