Merge branch 'ent-13575-seccion-api-checker-no-funciona' into 'develop'
Ent 13575 Sección Api Checker no funciona. See merge request artica/pandorafms!7333
This commit is contained in:
commit
d30cc27112
|
@ -69,6 +69,10 @@ function api_execute(
|
|||
|
||||
if (empty($url) === true) {
|
||||
$url = 'http://'.$ip.$pandora_url.'/include/api.php?';
|
||||
} else {
|
||||
$url_schema = parse_url($url);
|
||||
$url = $url_schema['scheme'].'://'.$url_schema['host'].$pandora_url.'/include/api.php?';
|
||||
}
|
||||
|
||||
if (empty($op) === false) {
|
||||
$data['op'] = $op;
|
||||
|
@ -101,7 +105,6 @@ function api_execute(
|
|||
$data['user'] = $user;
|
||||
$data['pass'] = $password;
|
||||
}
|
||||
}
|
||||
|
||||
$url_protocol = parse_url($url)['scheme'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue