summaryrefslogtreecommitdiff
path: root/it_mail.class
diff options
context:
space:
mode:
authorUrban Müller2018-06-22 08:54:54 +0200
committerUrban Müller2018-06-22 08:54:54 +0200
commit99b7fc8dc08da090bb7f00c2882e1daeec4434ba (patch)
tree30e2348c995d39d153c0d2056ee2fb69190f7862 /it_mail.class
parent3dabbbd5325c9fad9582cd44b1da68dece78eaa0 (diff)
downloaditools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.tar.gz
itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.tar.bz2
itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.zip
Revert "use safer it:: variants of file funcs"
This reverts commit 05e7ceefa1f0a29c665381b54ac882f260ae6c22.
Diffstat (limited to 'it_mail.class')
-rw-r--r--it_mail.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class
index a407e54..26ba883 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(it::file_get_contents($filename), $p + array('name' => basename($filename)));
+ return $this->add_attachment(file_get_contents($filename), $p + array('name' => basename($filename)));
}