Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d71b79a
)
MDL-34047 repository URL downloader must say that it returns only images
author
Marina Glancy
<marina@moodle.com>
Wed, 27 Jun 2012 02:05:12 +0000
(10:05 +0800)
committer
Marina Glancy
<marina@moodle.com>
Mon, 2 Jul 2012 06:12:20 +0000
(14:12 +0800)
repository/url/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/repository/url/lib.php
b/repository/url/lib.php
index
20725c8
..
892a09d
100644
(file)
--- a/
repository/url/lib.php
+++ b/
repository/url/lib.php
@@
-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');
+ }
+}