Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. --- a/classes/api/rest_client.php
  2. +++ b/classes/api/rest_client.php
  3. @@ -49,11 +49,14 @@ class local_bath_grades_transfer_rest_client
  4. * local_bath_grades_transfer_rest_client constructor.
  5. */
  6. public function __construct() {
  7. + global $CFG;
  8. $apiurl = get_config('local_bath_grades_transfer', 'samis_api_url');
  9. $this->username = get_config('local_bath_grades_transfer', 'samis_api_user');
  10. $this->password = get_config('local_bath_grades_transfer', 'samis_api_password');
  11. $this->client = new Client([
  12. - 'base_uri' => $apiurl
  13. + 'base_uri' => $apiurl,
  14. + 'proxy' => 'tcp://'.$CFG->proxyhost.':'.$CFG->proxyport
  15. + ]
  16. ]
  17. );
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement