diff options
author | Urban Müller | 2018-06-27 15:13:03 +0200 |
---|---|---|
committer | Urban Müller | 2018-06-27 15:13:03 +0200 |
commit | 84fe0c2eaa7deb0681cfc8746434044a2fae53c6 (patch) | |
tree | f42b265a85d66262da30be905fa0d3e7d310a6e1 /it_mail.class | |
parent | 3fc0d00f21b44d44ee1cf0513235e1b51340a290 (diff) | |
download | itools-84fe0c2eaa7deb0681cfc8746434044a2fae53c6.tar.gz itools-84fe0c2eaa7deb0681cfc8746434044a2fae53c6.tar.bz2 itools-84fe0c2eaa7deb0681cfc8746434044a2fae53c6.zip |
reapply "use safer it:: variants of file funcs", was not the culprit in jussi downtimes
This reverts commit 99b7fc8dc08da090bb7f00c2882e1daeec4434ba.
Diffstat (limited to 'it_mail.class')
-rw-r--r-- | it_mail.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class index 26ba883..a407e54 100644 --- a/it_mail.class +++ b/it_mail.class @@ -172,7 +172,7 @@ function add_file($filename, $p = array(), $legacy_name = null) if (!is_array($p)) # legacy mode: two scalars mime type / name $p = array('mimetype' => $p) + ($legacy_name ? array('name' => $legacy_name) : array()); - return $this->add_attachment(file_get_contents($filename), $p + array('name' => basename($filename))); + return $this->add_attachment(it::file_get_contents($filename), $p + array('name' => basename($filename))); } |