Changeset 59117 in spip-zone
- Timestamp:
- Mar 7, 2012, 3:06:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/plugins_seenthis/autoembed/autoembed.php
r59082 r59117 34 34 if (preg_match("/^http\:\/\/(www\.)?flickr\.com/i", $url)) { 35 35 $oembed = "http://www.flickr.com/services/oembed/?format=json&url=".$url; 36 $json = join("",file($oembed));36 $json = @join("",file($oembed)); 37 37 38 $json = json_decode($json);38 $json = @json_decode($json); 39 39 $img = $json->{'url'}; 40 40 if ($img) $code_ae = "<div class='oembed-container oembed-img'><a href='$url'><img src='$img' alt='Flickr' style='max-width: ".$max_i."px; max-height: ".$max_i."px;'/></a></div>";
Note: See TracChangeset
for help on using the changeset viewer.