mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -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);
|
$thumbnail = $this->fileRepository->findByNameAndFolder($fileName, $folder);
|
||||||
if (!$thumbnail) {
|
if (!$thumbnail) {
|
||||||
// Create thumbnail image
|
// 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(
|
$image->resize(
|
||||||
null,
|
null,
|
||||||
setting_value('visiosoft.module.advs::thumbnail_height'),
|
setting_value('visiosoft.module.advs::thumbnail_height'),
|
||||||
|
|||||||
@ -820,6 +820,8 @@ class AdvsController extends PublicController
|
|||||||
|
|
||||||
$form->render($this->request->update_id);
|
$form->render($this->request->update_id);
|
||||||
|
|
||||||
|
$adv = $this->adv_repository->find($form->getFormEntryId());
|
||||||
|
|
||||||
//Create Adress
|
//Create Adress
|
||||||
if ($this->request->address_id != "") {
|
if ($this->request->address_id != "") {
|
||||||
$address = $address->find($this->request->address_id);
|
$address = $address->find($this->request->address_id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user