From 6ba8e4d31ed75b27167ef4841ba5cc0ba8936716 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Wed, 24 Jun 2015 02:24:30 +0200 Subject: [PATCH] prepare for wblistadm server --- lib/utils.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utils.inc.php b/lib/utils.inc.php index de2cbfc..b9f7cf3 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -174,6 +174,8 @@ class Utils { } private function getRestTicket($username, $password) { + global $CFG; + $result = false; $url = $CFG->wblistadm_url . '/ticket'; @@ -190,6 +192,8 @@ class Utils { } public function makeRestCall($method, $data = null) { + global $CFG; + $result; $url = $CFG->wblistadm_url . "/$method"; -- 2.39.2