// harmonisation within Tools:: instead self::
This commit is contained in:
1 parent
99ebde1e8e
commit
7fb483eaa2
1 file changed
+1
-1
+1
-1
@@ -2557,7 +2557,7 @@ exit;
|
|||||||
$fileAttachment = null;
|
$fileAttachment = null;
|
||||||
if (isset($_FILES[$input]['name']) && !empty($_FILES[$input]['name']) && !empty($_FILES[$input]['tmp_name']))
|
if (isset($_FILES[$input]['name']) && !empty($_FILES[$input]['name']) && !empty($_FILES[$input]['tmp_name']))
|
||||||
{
|
{
|
||||||
$fileAttachment['rename'] = uniqid(). self::strtolower(substr($_FILES[$input]['name'], -5));
|
$fileAttachment['rename'] = uniqid(). Tools::strtolower(substr($_FILES[$input]['name'], -5));
|
||||||
$fileAttachment['content'] = file_get_contents($_FILES[$input]['tmp_name']);
|
$fileAttachment['content'] = file_get_contents($_FILES[$input]['tmp_name']);
|
||||||
$fileAttachment['tmp_name'] = $_FILES[$input]['tmp_name'];
|
$fileAttachment['tmp_name'] = $_FILES[$input]['tmp_name'];
|
||||||
$fileAttachment['name'] = $_FILES[$input]['name'];
|
$fileAttachment['name'] = $_FILES[$input]['name'];
|
||||||
|
|||||||
Reference in new issue
Block a user