Merged #81.
This commit is contained in:
commit
1e2f626077
@ -71,7 +71,11 @@ class SimilarImages
|
|||||||
if ($search_url) {
|
if ($search_url) {
|
||||||
$params['url'] = $search_url;
|
$params['url'] = $search_url;
|
||||||
} else {
|
} else {
|
||||||
$params['file'] = '@' . $source_file;
|
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)
|
foreach ($services_list as $k => $s)
|
||||||
@ -425,4 +429,4 @@ class SimilarImages
|
|||||||
{
|
{
|
||||||
return Rails::publicPath() . self::SEARCH_CACHE_DIR;
|
return Rails::publicPath() . self::SEARCH_CACHE_DIR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user