mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
fixed image upload error
This commit is contained in:
parent
0b4824f61c
commit
61a7bbcad6
@ -294,7 +294,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
$thumbnail = $this->fileRepository->findByNameAndFolder($fileName, $folder);
|
||||
if (!$thumbnail) {
|
||||
// Create thumbnail image
|
||||
$image = Image::make(file_get_contents($adv->files[0]->make()->path()));
|
||||
$image = Image::make(file_get_contents($adv->files[0]->make()->url()));
|
||||
$image->resize(
|
||||
null,
|
||||
setting_value('visiosoft.module.advs::thumbnail_height'),
|
||||
|
||||
@ -820,6 +820,8 @@ class AdvsController extends PublicController
|
||||
|
||||
$form->render($this->request->update_id);
|
||||
|
||||
$adv = $this->adv_repository->find($form->getFormEntryId());
|
||||
|
||||
//Create Adress
|
||||
if ($this->request->address_id != "") {
|
||||
$address = $address->find($this->request->address_id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user