Patch for ticket #1216. Move the values that were in the sendmail config file and store them as gallery module variables. Requires a version number bump to 37.

This commit is contained in:
Tim Almdal
2010-08-31 20:45:09 -07:00
parent 438cea231d
commit e09c6dbd5e
5 changed files with 35 additions and 41 deletions
+6 -4
View File
@@ -35,10 +35,12 @@ class Sendmail_Core {
public function __construct() {
$this->headers = array();
$config = Kohana::config("sendmail");
foreach ($config as $key => $value) {
$this->$key($value);
}
$domain = Input::instance()->server("HTTP_HOST");
$this->from(module::get_var("gallery", "email_from", "admin@$domain"));
$this->reply_to(module::get_var("gallery", "email_reply_to", "public@$domain"));
$this->line_length(module::get_var("gallery", "email_line_length", 70));
$separator = module::get_var("gallery", "email_header_separator", null);
$this->header_separator(empty($separator) ? "\n" : deserialize($separator));
}
public function __get($key) {