mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48: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) {
|
||||
if (\is_file($file = $path . $class2 . '.php')) {
|
||||
if (\is_file($file = $path . $class2 . '.php') && \stripos($file, $class2) !== false) {
|
||||
include_once $file;
|
||||
|
||||
return;
|
||||
} elseif (\is_file($file = $path . $class3 . '.php')) {
|
||||
} elseif (\is_file($file = $path . $class3 . '.php') && \stripos($file, $class3) !== false) {
|
||||
include_once $file;
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user