Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/classes/api/rest_client.php
- +++ b/classes/api/rest_client.php
- @@ -49,11 +49,14 @@ class local_bath_grades_transfer_rest_client
- * local_bath_grades_transfer_rest_client constructor.
- */
- public function __construct() {
- + global $CFG;
- $apiurl = get_config('local_bath_grades_transfer', 'samis_api_url');
- $this->username = get_config('local_bath_grades_transfer', 'samis_api_user');
- $this->password = get_config('local_bath_grades_transfer', 'samis_api_password');
- $this->client = new Client([
- - 'base_uri' => $apiurl
- + 'base_uri' => $apiurl,
- + 'proxy' => 'tcp://'.$CFG->proxyhost.':'.$CFG->proxyport
- + ]
- ]
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement