From 84d97b6d2a2433977971c66c64f7e7a2d8258f5c Mon Sep 17 00:00:00 2001 From: mightycoco Date: Mon, 25 Jun 2012 17:23:26 +0200 Subject: [PATCH] BUGFIX updated oembedUrl app_category check --- oembed/Oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oembed/Oembed.php b/oembed/Oembed.php index 9638da560..bdca6ac50 100644 --- a/oembed/Oembed.php +++ b/oembed/Oembed.php @@ -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); } }