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:
ba3e7df
)
MDL-33997 Repository should not support references by default
author
Marina Glancy
<marina@moodle.com>
Mon, 25 Jun 2012 08:03:25 +0000
(16:03 +0800)
committer
Marina Glancy
<marina@moodle.com>
Mon, 25 Jun 2012 08:03:25 +0000
(16:03 +0800)
repository/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/repository/lib.php
b/repository/lib.php
index
f897bf2
..
6231209
100644
(file)
--- a/
repository/lib.php
+++ b/
repository/lib.php
@@
-1662,12
+1662,14
@@
abstract class repository {
}
/**
- *
Does it return a file url or a item_id
+ *
Tells how the file can be picked from this repository
*
- * @return string
+ * Maximum value is FILE_INTERNAL | FILE_EXTERNAL | FILE_REFERENCE
+ *
+ * @return int
*/
public function supported_returntypes() {
- return (FILE_INTERNAL | FILE_EXTERNAL
| FILE_REFERENCE
);
+ return (FILE_INTERNAL | FILE_EXTERNAL);
}
/**