From 05e7ceefa1f0a29c665381b54ac882f260ae6c22 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 21 Jun 2018 16:12:20 +0200 Subject: use safer it:: variants of file funcs --- it_mail.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_mail.class') 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))); } -- cgit v1.2.3