fixed: in notify/notify.cpp: a correct locale id should be taken
(we were not able to send: a mail with an activation link and a mail with the reset password link when we didn't have a locale with id 0 loaded) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@929 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -173,16 +173,17 @@ void NotifyThread::SendMail()
|
||||
{
|
||||
notify_stream.Clear();
|
||||
|
||||
size_t lang_index = TemplatesNotifyFunctions::notify_user_msg.lang;
|
||||
size_t lang_id = TemplatesNotifyFunctions::notify_user_msg.lang;
|
||||
size_t template_index = TemplatesNotifyFunctions::notify_msg.template_index;
|
||||
|
||||
Lock();
|
||||
// 'patterns' object can use logger or other stuff so we use Lock() before
|
||||
Ezc::Pattern * pat = patterns.Get(template_index, lang_index);
|
||||
Ezc::Pattern * pat = patterns.Get(template_index, lang_id);
|
||||
|
||||
if( !pat )
|
||||
log << log1 << "NotifyThread: I don't have a template with index: " << template_index
|
||||
<< " and locale index: " << lang_index << logend;
|
||||
<< " and locale id: " << lang_id << logend;
|
||||
|
||||
|
||||
Unlock();
|
||||
|
||||
|
Reference in New Issue
Block a user