Various fixes

This commit is contained in:
Tomas Bures 2019-03-09 07:42:14 +00:00
parent 4a6aed4cf7
commit 97bb700334
5 changed files with 8 additions and 6 deletions

View file

@ -675,7 +675,7 @@ async function webNotice(type, req, res) {
}
};
await injectCustomFormData(req.query.fid || list.default_form, 'web_' + type + '_notice', data);
await injectCustomFormData(req.query.fid || list.default_form, 'web_' + type.replace('-', '_') + '_notice', data);
const htmlRenderer = await tools.getTemplate(data.template, req.locale);