mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX updated oembedUrl app_category check
This commit is contained in:
parent
e582935582
commit
84d97b6d2a
@ -134,7 +134,7 @@ class Oembed {
|
||||
|
||||
// If autodescovery failed the resource might be a direct link to a file
|
||||
if(!$oembedUrl) {
|
||||
if(File::get_app_category(File::get_file_extension($url))) {
|
||||
if(File::get_app_category(File::get_file_extension($url)) == "image") {
|
||||
return new Oembed_Result($url, $url, $type, $options);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user