Fix inconsistent directory separators in the autoloader.
It looks like this was the cause of a version 5.0 bug reported in #378.
This commit is contained in:
parent
32f0079038
commit
81be284da7
|
|
@ -73,7 +73,7 @@ if ( !class_exists(Autoloader::class, false) ):
|
|||
|
||||
if ( strpos($className, $this->prefix) === 0 ) {
|
||||
$path = substr($className, strlen($this->prefix));
|
||||
$path = str_replace('_', '/', $path);
|
||||
$path = str_replace(array('_', '\\'), '/', $path);
|
||||
$path = $this->rootDir . $path . '.php';
|
||||
|
||||
if ( file_exists($path) ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue