Projekt

Obecné

Profil

« Předchozí | Další » 

Revize ebc08f82

Přidáno uživatelem Ondřej Fibich před asi 9 roky(ů)

Adds configuration option that allows to disable appending message names to e-mail notification messages subjects.

Zobrazit rozdíly:

application/controllers/settings.php
$this->form->input('email_subject_prefix')
->label(__('E-mail subject prefix').':')
->value(Settings::get('email_subject_prefix'));
$this->form->checkbox('notification_email_message_name_in_subject')
->label(__('Append notification message name to e-mail message subject'))
->checked(Settings::get('notification_email_message_name_in_subject'));
$this->form->submit('submit')->value(__('Save'));
application/i18n/cs_CZ/texts.php
'api account' => 'API účet',
'api accounts' => 'API účty',
'append interface to link' => 'Přidat k linkce rozhraní',
'append notification message name to e-mail message subject' => 'Přidávat název upozorňovací zprávy do předmětu e-mailové zprávy',
'applicant' => 'Čekatel na členství',
'applicant connected from' => 'Čekatel připojen od',
'applicant e-mail is not required' => 'E-mail zájemce není povinný',
application/libraries/Settings.php
// notificatuion is enabled by default
'notification_enabled' => TRUE,
// allows to enable/disable putting notification message as the e-mail
// message subject suffix
'notification_email_message_name_in_subject' => TRUE,
// password check also for MD5 algorithm (not only fo SHA1)
// this is here because of posibility of transformation from old data
application/models/message.php
}
// subject
$subject = __($message->name);
$subject = '';
if (Settings::get('notification_email_message_name_in_subject'))
{
$subject = __($message->name);
}
$email_subject_prefix = Settings::get('email_subject_prefix');
if ($email_subject_prefix)
{
$subject = $email_subject_prefix . ':' . $subject;
if ($subject)
{
$subject = $email_subject_prefix . ':' . $subject;
}
else
{
$subject = $email_subject_prefix;
}
}
// add Email to queue

Také k dispozici: Unified diff