changed: notification's template
added: notifications in tickets git-svn-id: svn://ttmath.org/publicrep/winix/trunk@650 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -55,6 +55,10 @@ void notify_mount_type_is_thread(Info & i)
|
||||
i.res = notify_msg->current_mount_type == Mount::thread;
|
||||
}
|
||||
|
||||
void notify_mount_type_is_ticket(Info & i)
|
||||
{
|
||||
i.res = notify_msg->current_mount_type == Mount::ticket;
|
||||
}
|
||||
|
||||
void notify_mount_type_is_cms(Info & i)
|
||||
{
|
||||
|
||||
@@ -55,6 +55,7 @@ using namespace TemplatesNotifyFunctions;
|
||||
ezc_functions.Insert("notify_dir_added", notify_dir_added);
|
||||
ezc_functions.Insert("notify_to", notify_to);
|
||||
ezc_functions.Insert("notify_mount_type_is_thread", notify_mount_type_is_thread);
|
||||
ezc_functions.Insert("notify_mount_type_is_ticket", notify_mount_type_is_ticket);
|
||||
ezc_functions.Insert("notify_mount_type_is_cms", notify_mount_type_is_cms);
|
||||
ezc_functions.Insert("notify_doc_base_url", notify_doc_base_url);
|
||||
ezc_functions.Insert("notify_item_dir", notify_item_dir);
|
||||
@@ -112,6 +113,9 @@ using namespace TemplatesNotifyFunctions;
|
||||
}
|
||||
|
||||
Ezc::Generator generator(notify_str, patterns[lang][pat_email_notify], ezc_functions);
|
||||
generator.RecognizeSpecialChars(true);
|
||||
generator.TrimWhite(true);
|
||||
generator.SkipNewLine(true);
|
||||
generator.Generate();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ namespace TemplatesNotifyFunctions
|
||||
void notify_dir_added(Info & i);
|
||||
void notify_to(Info & i);
|
||||
void notify_mount_type_is_thread(Info & i);
|
||||
void notify_mount_type_is_ticket(Info & i);
|
||||
void notify_mount_type_is_cms(Info & i);
|
||||
void notify_doc_base_url(Info & i);
|
||||
void notify_item_dir(Info & i);
|
||||
|
||||
Reference in New Issue
Block a user