mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-10 00:18:40 +00:00
fix tests
This commit is contained in:
parent
e455af3261
commit
38672f636d
|
|
@ -38,11 +38,11 @@ function module_autoloader($class) {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
if (\is_file($file = $path . $class2 . '.php')) {
|
if (\is_file($file = $path . $class2 . '.php') && \stripos($file, $class2) !== false) {
|
||||||
include_once $file;
|
include_once $file;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} elseif (\is_file($file = $path . $class3 . '.php')) {
|
} elseif (\is_file($file = $path . $class3 . '.php') && \stripos($file, $class3) !== false) {
|
||||||
include_once $file;
|
include_once $file;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user