mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-28 00:54:31 +01:00
Bookmarks: make a soft-requirement of php-curl
This commit is contained in:
parent
cec6a0bf0a
commit
6474863f46
@ -56,6 +56,9 @@ function getURLMetadata($url) {
|
||||
}
|
||||
$metadata['url'] = $url;
|
||||
|
||||
if (!function_exists('curl_init')){
|
||||
return $metadata;
|
||||
}
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user