mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
3.8 IMG upload bug
This commit is contained in:
parent
1e26a8a4be
commit
9f5a4a3fcb
@ -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]->url()));
|
||||
$image = Image::make(file_get_contents($adv->files[0]->make()->path()));
|
||||
$image->resize(
|
||||
null,
|
||||
setting_value('visiosoft.module.advs::thumbnail_height'),
|
||||
@ -323,7 +323,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
|
||||
$coverPhoto = 'files/images/' . $fileName;
|
||||
} else {
|
||||
$coverPhoto = $thumbnail->url();
|
||||
$coverPhoto = $thumbnail->make()->path();
|
||||
}
|
||||
} else {
|
||||
$coverPhoto = null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user