Revize 45d52e19
Přidáno uživatelem Ondřej Fibich před asi 9 roky(ů)
application/models/message.php | ||
---|---|---|
$email_count = 0;
|
||
|
||
// if default email ans subject prefix is set
|
||
if (!Settings::get('email_default_email') ||
|
||
!Settings::get('email_subject_prefix'))
|
||
if (!Settings::get('email_default_email'))
|
||
{
|
||
throw new Exception('Email not configured properly');
|
||
}
|
||
... | ... | |
}
|
||
|
||
// subject
|
||
$subject = Settings::get('email_subject_prefix')
|
||
. ': ' . __($message->name);
|
||
$subject = __($message->name);
|
||
$email_subject_prefix = Settings::get('email_subject_prefix');
|
||
if ($email_subject_prefix)
|
||
{
|
||
$subject = $email_subject_prefix . ':' . $subject;
|
||
}
|
||
|
||
// add Email to queue
|
||
$eq_model->clear();
|
Také k dispozici: Unified diff
Fix bug that not allows empty "email_subject_prefix" in e-mail notification.