Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit c0cea70f0b5a4356dff7149151a5ebce30c3ed10 1 parent 116714e
Marina Glancy marinaglancy authored

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. +9 0 repository/url/lib.php
9 repository/url/lib.php
@@ -151,6 +151,15 @@ public function guess_filename($url, $type) {
151 151 }
152 152 }
153 153
  154 + /**
  155 + * file types supported by url downloader plugin
  156 + *
  157 + * @return array
  158 + */
  159 + public function supported_filetypes() {
  160 + return array('web_image');
  161 + }
  162 +
154 163 public function supported_returntypes() {
155 164 return (FILE_INTERNAL | FILE_EXTERNAL);
156 165 }

0 comments on commit c0cea70

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