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)
committerMarina Glancy <marina@moodle.com>
Mon, 2 Jul 2012 06:12:20 +0000 (14:12 +0800)
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');
+    }
+}