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:
parent
3dd234ffde
commit
7cf77ecd9e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user