mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #1179 from openclassify/vedat
fix certificate error file_get_content
This commit is contained in:
commit
60764ffed5
@ -312,7 +312,15 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
if (!$thumbnail AND $ext[1] != 'svg') {
|
||||
|
||||
// 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(
|
||||
null,
|
||||
setting_value('visiosoft.module.advs::thumbnail_height'),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user