Commit b0e57679 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fallback to english template if no other exists

parent 87f375ee
......@@ -202,6 +202,12 @@ class MailTemplateService {
$this->extensionKey, $this->templateName, $this->language
)->getFirst();
// If there is no template for this language, use the english template
if ($template === NULL && $this->language !== 'en') {
$this->setLanguage('en');
$this->sendEmail();
}
if ($template === NULL) {
return FALSE;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment