Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'MDL-27530_stable' of git://github.com/grabs/moodle into…

… MOODLE_20_STABLE
  • Loading branch information...
commit f79dd3b57d8c5dd68bc013a1d09417ec385e2a7b 2 parents a021f72 + ffa12b8
Sam Hemelryk samhemelryk authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 repository/webdav/lib.php
6 repository/webdav/lib.php
@@ -61,15 +61,15 @@ public function __construct($repositoryid, $context = SYSCONTEXTID, $options = a
61 61 public function check_login() {
62 62 return true;
63 63 }
64   - public function get_file($path, $title) {
  64 + public function get_file($url, $title) {
65 65 global $CFG;
66   - $path = urldecode($path);
  66 + $url = urldecode($url);
67 67 $path = $this->prepare_file($title);
68 68 $buffer = '';
69 69 if (!$this->dav->open()) {
70 70 return false;
71 71 }
72   - $this->dav->get($path, $buffer);
  72 + $this->dav->get($url, $buffer);
73 73 $fp = fopen($path, 'wb');
74 74 fwrite($fp, $buffer);
75 75 return array('path'=>$path);

0 comments on commit f79dd3b

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