Skip to content
Snippets Groups Projects
Commit 3583d071 authored by David Pesce's avatar David Pesce Committed by GitHub
Browse files

Merge pull request #85 from deedey/patch-1

Update to allow Moodle proxy settings to be used (if present)
parents 794f29c7 dfa0f2d2
No related branches found
No related tags found
No related merge requests found
......@@ -154,12 +154,17 @@ class store extends php_obj implements log_writer {
* @return xapi_repository
*/
private function connect_xapi_repository() {
return new xapi_repository(new tincan_remote_lrs(
global $CFG;
$remote_lrs = new tincan_remote_lrs(
$this->get_config('endpoint', ''),
'1.0.1',
$this->get_config('username', ''),
$this->get_config('password', '')
));
);
if (!empty($CFG->proxyhost)) {
$remote_lrs->setProxy($CFG->proxyhost.':'.$CFG->proxyport);
}
return new xapi_repository($remote_lrs);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment