Skip to content
Snippets Groups Projects
Commit e49ebdaa authored by Florian Azizian's avatar Florian Azizian
Browse files

[FIX] Fix getCustomId for WebService

parent fc3ed959
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,10 @@ class CoreConfigModel
}
$explodeUrl = explode('/', $_SERVER['SCRIPT_NAME']);
if (strpos($_SERVER['SCRIPT_NAME'], 'apps/maarch_entreprise') === false) {
if (strpos($_SERVER['SCRIPT_NAME'], 'ws_server') !== false) {
$path = $explodeUrl[count($explodeUrl) - 2];
} elseif (strpos($_SERVER['SCRIPT_NAME'], 'apps/maarch_entreprise') === false) {
$path = $explodeUrl[count($explodeUrl) - 3];
} else {
$path = $explodeUrl[count($explodeUrl) - 4];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment