Skip to content

Commit

Permalink
"MDL-22523, fixed file system plugin bug"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed May 20, 2010
1 parent cb0336e commit 951d2d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion repository/filesystem/repository.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,16 @@ public function print_login() {
public function global_search() {
return false;
}
// move file to local moodle
/**
* Return file path
* @return array
*/
public function get_file($file, $title = '') {
global $CFG;
if ($file{0} == '/') {
$file = $this->root_path.substr($file, 1, strlen($file)-1);
} else {
$file = $this->root_path.$file;
}
// this is a hack to prevent move_to_file deleteing files
// in local repository
Expand Down

0 comments on commit 951d2d5

Please sign in to comment.