// harmonisation within Tools:: instead self::
This commit is contained in:
1 parent
99ebde1e8e
commit
7fb483eaa2
1 file changed
+2
-2
+2
-2
@@ -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'];
|
||||||
@@ -2592,4 +2592,4 @@ function cmpPriceDesc($a, $b)
|
|||||||
elseif ((float)$a['price_tmp'] > (float)$b['price_tmp'])
|
elseif ((float)$a['price_tmp'] > (float)$b['price_tmp'])
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user