Internal: Don't check multi-url in api_get_path

pull/5674/head
Angel Fernando Quiroz Campos 1 year ago
parent a26bbece70
commit 52d5d7f519
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 4
      public/main/inc/lib/api.lib.php

@ -716,7 +716,7 @@ function api_get_path($path = '', $configuration = [])
); );
} }
if (api_get_multiple_access_url()) { /*if (api_get_multiple_access_url()) {
// To avoid that the api_get_access_url() function fails since global.inc.php also calls the main_api.lib.php // To avoid that the api_get_access_url() function fails since global.inc.php also calls the main_api.lib.php
if (isset($configuration['access_url']) && !empty($configuration['access_url'])) { if (isset($configuration['access_url']) && !empty($configuration['access_url'])) {
// We look into the DB the function api_get_access_url // We look into the DB the function api_get_access_url
@ -727,7 +727,7 @@ function api_get_path($path = '', $configuration = [])
$root_web = 1 == $urlInfo['active'] ? $urlInfo['url'] : $configuration['root_web']; $root_web = 1 == $urlInfo['active'] ? $urlInfo['url'] : $configuration['root_web'];
} }
} }
} }*/
$paths = [ $paths = [
WEB_PATH => $root_web, WEB_PATH => $root_web,

Loading…
Cancel
Save