Skip to content
Snippets Groups Projects
Commit dfa0f2d2 authored by Dey Bendifallah's avatar Dey Bendifallah Committed by GitHub
Browse files

Update store.php

Added moodle config proxy parameters
parent 433babc9
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