From c0cea70f0b5a4356dff7149151a5ebce30c3ed10 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/repository/url/lib.php b/repository/url/lib.php index f763b39208b..362cfa26d8c 100644 --- a/repository/url/lib.php +++ b/repository/url/lib.php @@ -151,6 +151,15 @@ EOD; } } + /** + * file types supported by url downloader plugin + * + * @return array + */ + public function supported_filetypes() { + return array('web_image'); + } + public function supported_returntypes() { return (FILE_INTERNAL | FILE_EXTERNAL); }