Debug v22

This commit is contained in:
ldestailleur
2025-06-02 17:07:25 +02:00
parent d543bdcffe
commit 7b8223d66a

View File

@@ -1519,10 +1519,10 @@ class FormMail extends Form
$layoutname = preg_replace('/\.html$/i', '', $layouttemplatefile['name']); $layoutname = preg_replace('/\.html$/i', '', $layouttemplatefile['name']);
// Exclude some layouts for some use cases // Exclude some layouts for some use cases
if ($layoutname == 'news' && !in_array($showlinktolayout, array('emailing', 'websitepage')) && !isModEnabled('website')) { if ($layoutname == 'news' && (!in_array($showlinktolayout, array('emailing', 'websitepage')) || !isModEnabled('website'))) {
continue; continue;
} }
if ($layoutname == 'products' && !in_array($showlinktolayout, array('emailing', 'websitepage')) && !isModEnabled('product') && !isModEnabled('service')) { if ($layoutname == 'products' && (!in_array($showlinktolayout, array('emailing', 'websitepage')) || (!isModEnabled('product') && !isModEnabled('service')))) {
continue; continue;
} }