MDL-33377 Do not allow to link to course files since reference is preferable
authorMarina Glancy <marina@moodle.com>
Mon, 28 May 2012 08:27:22 +0000 (16:27 +0800)
committerMarina Glancy <marina@moodle.com>
Mon, 28 May 2012 08:27:22 +0000 (16:27 +0800)
repository/coursefiles/lib.php

index 2f1e8fe..16353b8 100644 (file)
@@ -186,7 +186,7 @@ class repository_coursefiles extends repository {
     }
 
     public function supported_returntypes() {
-        return (FILE_INTERNAL | FILE_EXTERNAL | FILE_REFERENCE);
+        return (FILE_INTERNAL | FILE_REFERENCE);
     }
 
     public static function get_type_option_names() {