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