mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-05 21:06:07 -06:00
fix certificate error file_get_content
This commit is contained in:
parent
4cb72bf693
commit
7466f07f70
@ -312,7 +312,15 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
|||||||
if (!$thumbnail AND $ext[1] != 'svg') {
|
if (!$thumbnail AND $ext[1] != 'svg') {
|
||||||
|
|
||||||
// Create thumbnail image
|
// Create thumbnail image
|
||||||
$image = Image::make(file_get_contents($adv->files[0]->make()->url()));
|
|
||||||
|
$arrContextOptions=array(
|
||||||
|
"ssl"=>array(
|
||||||
|
"verify_peer"=>false,
|
||||||
|
"verify_peer_name"=>false,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
$image = Image::make(file_get_contents($adv->files[0]->make()->url(), false, stream_context_create($arrContextOptions)));
|
||||||
$image->resize(
|
$image->resize(
|
||||||
null,
|
null,
|
||||||
setting_value('visiosoft.module.advs::thumbnail_height'),
|
setting_value('visiosoft.module.advs::thumbnail_height'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user