Skip to content
Snippets Groups Projects
Commit d1ed7f01 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix route rest if custom

parent 432fdef5
No related branches found
No related tags found
No related merge requests found
...@@ -2360,6 +2360,10 @@ class core_tools extends functions ...@@ -2360,6 +2360,10 @@ class core_tools extends functions
} }
$linkToApps = false; $linkToApps = false;
$arr = explode('/', $_SERVER['SCRIPT_NAME']); $arr = explode('/', $_SERVER['SCRIPT_NAME']);
if($key = array_search('rest',$arr)){
unset($arr[$key]);
}
$arr = array_values($arr);
for($cptArr=0;$cptArr<count($arr);$cptArr++) { for($cptArr=0;$cptArr<count($arr);$cptArr++) {
if($arr[$cptArr] == "apps") { if($arr[$cptArr] == "apps") {
$linkToApps = true; $linkToApps = true;
......
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