MDL-33420 Enable references in Server files repository
This commit is contained in:
@@ -115,7 +115,7 @@ class repository_local extends repository {
|
||||
* @return int
|
||||
*/
|
||||
public function supported_returntypes() {
|
||||
return FILE_INTERNAL;
|
||||
return FILE_INTERNAL | FILE_REFERENCE;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -126,6 +126,17 @@ class repository_local extends repository {
|
||||
public function has_moodle_files() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return reference file life time
|
||||
*
|
||||
* @param string $ref
|
||||
* @return int
|
||||
*/
|
||||
public function get_reference_file_lifetime($ref) {
|
||||
// this should be realtime
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user