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:
Diego Muñoz-Reja 2024-05-03 12:13:17 +00:00
commit d30cc27112
1 changed files with 28 additions and 25 deletions

View File

@ -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'];