diff --git a/repository/webdav/lib.php b/repository/webdav/lib.php index a7284c564b..4436b104e8 100644 --- a/repository/webdav/lib.php +++ b/repository/webdav/lib.php @@ -61,15 +61,15 @@ public function __construct($repositoryid, $context = SYSCONTEXTID, $options = a public function check_login() { return true; } - public function get_file($path, $title) { + public function get_file($url, $title) { global $CFG; - $path = urldecode($path); + $url = urldecode($url); $path = $this->prepare_file($title); $buffer = ''; if (!$this->dav->open()) { return false; } - $this->dav->get($path, $buffer); + $this->dav->get($url, $buffer); $fp = fopen($path, 'wb'); fwrite($fp, $buffer); return array('path'=>$path);