Skip to content

Commit

Permalink
Merge branch 'wip-MDL-33749-MOODLE_21_STABLE' of https://github.com/k…
Browse files Browse the repository at this point in the history
…wiliarty/moodle into MOODLE_21_STABLE
  • Loading branch information
Sam Hemelryk committed Jul 3, 2012
2 parents d65a100 + 78dd6d4 commit 17a759c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repository/url/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function get_listing($path='', $page='') {
global $CFG, $OUTPUT;
$ret = array();
$curl = new curl;
$curl->setopt(array('CURLOPT_FOLLOWLOCATION' => true, 'CURLOPT_MAXREDIRS' => 3));
$msg = $curl->head($this->file_url);
$info = $curl->get_info();
if ($info['http_code'] != 200) {
Expand Down

0 comments on commit 17a759c

Please sign in to comment.