We need these vars to be 'global'. Closts #45

This commit is contained in:
Mark Schouten 2015-04-20 10:42:31 +02:00
parent 3ff38a443c
commit 6bbe01a54a

View file

@ -11,7 +11,7 @@ if (!is_csrf_safe()) {
}
function api_request($path, $opts = null, $type = null) {
global $apisid, $apiuser, $apipass, $apiip, $apiport, $authmethod;
global $apiproto, $apisslverify, $apisid, $apiuser, $apipass, $apiip, $apiport, $authmethod;
$url = "$apiproto://$apiip:$apiport${path}";