Skip to content
Browse files

Merge branch 'MDL-27530_head' of git://github.com/grabs/moodle

  • Loading branch information...
2 parents 0193d9d + a193a0c commit 34997cf89e706c3f2f92a4241d48e344aafc028c Sam Hemelryk committed May 23, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 repository/webdav/lib.php
View
6 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);

0 comments on commit 34997cf

Please sign in to comment.
Something went wrong with that request. Please try again.