From fb4e33ee8bc0cf24355f6107e769c10937091707 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 6 Apr 2021 15:55:13 +0200 Subject: [PATCH] getClassPath fix --- core/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index a6e30fe..6f57d3c 100644 --- a/core/core.php +++ b/core/core.php @@ -110,7 +110,7 @@ function getClassPath($class, $suffix = true) { $path = str_replace('\\', '/', $class); $path = array_values(array_filter(explode("/", $path))); - if (strcasecmp($path[0], "api") === 0 && count($path) > 2 && strcasecmp($path[1], "Parameter") !== 0) { + if (count($path) > 2 && strcasecmp($path[0], "api") === 0 && strcasecmp($path[1], "Parameter") !== 0) { $path = "Api/" . $path[1] . "API"; } else { $path = implode("/", $path);