33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +00:00

simplify a legacy code

This commit is contained in:
Denis Ryabov 2021-11-16 19:56:48 +03:00
parent 3dd234ffde
commit 7cf77ecd9e

View File

@ -85,11 +85,7 @@ class JedcheckerControllerUploads extends JControllerLegacy
}
}
$filepath = $path . '/' . strtolower($file['name']);
$object_file = new JObject($file);
$object_file->filepath = $filepath;
$file = (array) $object_file;
$file['filepath'] = $path . '/' . strtolower($file['name']);
// Let us try to upload
if (!JFile::upload($file['tmp_name'], $file['filepath'], false, true))