Skip to content
This repository
Browse code

BUGFIX updated oembedUrl app_category check

  • Loading branch information...
commit 84d97b6d2a2433977971c66c64f7e7a2d8258f5c 1 parent e582935
mightycoco authored June 25, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  oembed/Oembed.php
2  oembed/Oembed.php
@@ -134,7 +134,7 @@ public static function get_oembed_from_url($url, $type = false, array $options =
134 134
 		
135 135
 		// If autodescovery failed the resource might be a direct link to a file
136 136
 		if(!$oembedUrl) {
137  
-			if(File::get_app_category(File::get_file_extension($url))) {
  137
+			if(File::get_app_category(File::get_file_extension($url)) == "image") {
138 138
 				return new Oembed_Result($url, $url, $type, $options);
139 139
 			}
140 140
 		}

0 notes on commit 84d97b6

Please sign in to comment.
Something went wrong with that request. Please try again.