Merged #81.
This commit is contained in:
commit
1e2f626077
@ -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