mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-31 21:51:46 +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']);
|
$file['filepath'] = $path . '/' . strtolower($file['name']);
|
||||||
|
|
||||||
$object_file = new JObject($file);
|
|
||||||
$object_file->filepath = $filepath;
|
|
||||||
$file = (array) $object_file;
|
|
||||||
|
|
||||||
// Let us try to upload
|
// Let us try to upload
|
||||||
if (!JFile::upload($file['tmp_name'], $file['filepath'], false, true))
|
if (!JFile::upload($file['tmp_name'], $file['filepath'], false, true))
|
||||||
|
Loading…
Reference in New Issue
Block a user