Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34047 repository URL downloader must say that it returns only images

  • Loading branch information...
commit c0cea70f0b5a4356dff7149151a5ebce30c3ed10 1 parent 116714e
@marinaglancy marinaglancy authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 repository/url/lib.php
View
9 repository/url/lib.php
@@ -151,6 +151,15 @@ public function guess_filename($url, $type) {
}
}
+ /**
+ * 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);
}

0 comments on commit c0cea70

Please sign in to comment.
Something went wrong with that request. Please try again.