MDL-34047 repository URL downloader must say that it returns only images
[moodle.git] / repository / url / lib.php
index 20725c8..892a09d 100644 (file)
@@ -227,5 +227,13 @@ EOD;
     public function get_file_source_info($url) {
         return $url;
     }
-}
 
+    /**
+     * file types supported by url downloader plugin
+     *
+     * @return array
+     */
+    public function supported_filetypes() {
+        return array('web_image');
+    }
+}