From 81c4a77827dd18141c62e1230bf58a1050d421f3 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Wed, 27 Jun 2012 10:05:12 +0800 Subject: [PATCH] MDL-34047 repository URL downloader must say that it returns only images --- repository/url/lib.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/repository/url/lib.php b/repository/url/lib.php index 20725c81f2354..892a09dc1fb57 100644 --- a/repository/url/lib.php +++ b/repository/url/lib.php @@ -227,5 +227,13 @@ public function supported_returntypes() { 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'); + } +}