commit
b50a5fb516
@ -70,9 +70,13 @@ class SimilarImages
|
||||
$params = [];
|
||||
if ($search_url) {
|
||||
$params['url'] = $search_url;
|
||||
} else {
|
||||
if (function_exists('curl_file_create')) { // PHP v5.5.* fix
|
||||
$params['file'] = curl_file_create($source_file);
|
||||
} else {
|
||||
$params['file'] = '@' . $source_file;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($services_list as $k => $s)
|
||||
$params["service[$k]"] = $s;
|
||||
|
Reference in New Issue
Block a user