MDL-34047 repository URL downloader must say that it returns only images
authorMarina Glancy <marina@moodle.com>
Wed, 27 Jun 2012 02:05:12 +0000 (10:05 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 4 Jul 2012 01:51:51 +0000 (09:51 +0800)
repository/url/lib.php

index ba247ff..1255570 100644 (file)
@@ -228,5 +228,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');
+    }
+}