mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fix path
This commit is contained in:
parent
d37433c026
commit
067af207df
|
|
@ -72,8 +72,8 @@ class Autoloader
|
|||
$class = str_replace(['_', '\\'], '/', $class);
|
||||
|
||||
foreach (self::$paths as $path) {
|
||||
if (file_exists($path = __DIR__ . '/../' . $class . '.php')) {
|
||||
include_once $path;
|
||||
if (file_exists($file = $path . $class . '.php')) {
|
||||
include_once $file;
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user