Fixed i18n issue
authorMarcel Werk <burntime@woltlab.com>
Mon, 29 Apr 2013 13:10:38 +0000 (15:10 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 29 Apr 2013 13:10:38 +0000 (15:10 +0200)
wcfsetup/install/files/lib/system/worker/MailWorker.class.php

index 3ad0767790250f836f016792d31f6b53da080789..08161d8013c39ce64b7f76a8717282d13bc48496 100644 (file)
@@ -127,6 +127,7 @@ class MailWorker extends AbstractWorker {
                try {
                        $mail = new Mail(array($user->username => $user->email), $this->userMailData['subject'], StringUtil::replace('{$username}', $user->username, $this->mailData['text']), $this->mailData['from']);
                        if ($this->mailData['enableHTML']) $mail->setContentType('text/html');
+                       $mail->setLanguage($user->getLanguage());
                        $mail->send();
                }
                catch (SystemException $e) {