Skip to content

Commit

Permalink
MDL-33420 Enable references in Server files repository
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Jun 13, 2012
1 parent f8dfdb5 commit be920f9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion repository/local/lib.php
Expand Up @@ -115,7 +115,7 @@ public function get_listing($encodedpath = '', $page = '') {
* @return int
*/
public function supported_returntypes() {
return FILE_INTERNAL;
return FILE_INTERNAL | FILE_REFERENCE;
}

/**
Expand All @@ -126,6 +126,17 @@ public function supported_returntypes() {
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;
}
}

/**
Expand Down

0 comments on commit be920f9

Please sign in to comment.