Skip to content

Commit

Permalink
Merge branch 'MDL-27530_head' of git://github.com/grabs/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed May 23, 2011
2 parents 0193d9d + a193a0c commit 34997cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repository/webdav/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ public function __construct($repositoryid, $context = SYSCONTEXTID, $options = a
public function check_login() { public function check_login() {
return true; return true;
} }
public function get_file($path, $title) { public function get_file($url, $title) {
global $CFG; global $CFG;
$path = urldecode($path); $url = urldecode($url);
$path = $this->prepare_file($title); $path = $this->prepare_file($title);
$buffer = ''; $buffer = '';
if (!$this->dav->open()) { if (!$this->dav->open()) {
return false; return false;
} }
$this->dav->get($path, $buffer); $this->dav->get($url, $buffer);
$fp = fopen($path, 'wb'); $fp = fopen($path, 'wb');
fwrite($fp, $buffer); fwrite($fp, $buffer);
return array('path'=>$path); return array('path'=>$path);
Expand Down

0 comments on commit 34997cf

Please sign in to comment.