Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate
2016-09-12 22:23:50 +00:00
3 changed files with 17 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
$lang["common_address_1"] = "Adresse 1";
$lang["common_address_2"] = "Adresse 2";
$lang["common_city"] = "Stadt";
$lang["common_close"] = "Close";
$lang["common_close"] = "Schließen";
$lang["common_comments"] = "Kommentare";
$lang["common_common"] = "Allgemein";
$lang["common_confirm_search"] = "Sie haben einen oder mehrere Zeilen gewählt. Nach der Verarbeitung werden diese nicht mehr selektiert sein. Wollen Sie die Suche dennoch verarbeiten?";

View File

@@ -0,0 +1 @@
<?php

View File

@@ -33,16 +33,25 @@ class Email_lib
*/
public function sendEmail($to, $subject, $message, $attachment = NULL)
{
$this->CI->email->from($this->CI->config->item('email'), $this->CI->config->item('company'));
$this->CI->email->to($to);
$this->CI->email->subject($subject);
$this->CI->email->message($message);
$email = $this->CI->email;
$email->from($this->CI->config->item('email'), $this->CI->config->item('company'));
$email->to($to);
$email->subject($subject);
$email->message($message);
if( !empty($attachment) )
{
$this->CI->email->attach($attachment);
$email->attach($attachment);
}
return $this->CI->email->send();
$result = $email->send();
if(!$result)
{
error_log($email->print_debugger());
}
return $result;
}
}