]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
prepare for wblistadm server
[qtadmin.git] / lib / utils.inc.php
index de2cbfcc63e7be3f3bc35c2e2c26af653bb70d16..6cea76ef1943fbc4d3c551f9e4eb27307f175248 100644 (file)
@@ -174,6 +174,8 @@ class Utils {
     }
 
     private function getRestTicket($username, $password) {
+        global $CFG;
+
         $result = false;
         $url = $CFG->wblistadm_url . '/ticket';
 
@@ -190,9 +192,11 @@ class Utils {
     }
 
     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);
 
This page took 0.028949 seconds and 5 git commands to generate.