}
private function getRestTicket($username, $password) {
+ global $CFG;
+
$result = false;
$url = $CFG->wblistadm_url . '/ticket';
}
public function makeRestCall($method, $data = null) {
+ global $CFG;
+
$result;
- $url = $CFG->wblistadm_url . "/$method";
+ $url = $CFG->wblistadm_url . "$method";
$token = $this->getCSRFPreventionToken($_SESSION['ticket']);
$response = $this->RESTCall($url, $data, $_SESSION['cookies'], $token);