Skip to content
Snippets Groups Projects
Commit 4a57728d authored by Bart Visscher's avatar Bart Visscher
Browse files

Bookmarks: make a soft-requirement of php-curl

parent cea65616
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment