Let's just use '/' as we do almost everywhere - this change fixes two failing unit tests

remotes/origin/stable6
Thomas Mueller 12 years ago
parent 1da112750e
commit 988b539dd7
  1. 4
      lib/autoloader.php

@ -96,8 +96,8 @@ class Autoloader {
} else {
foreach ($this->prefixPaths as $prefix => $dir) {
if (0 === strpos($class, $prefix)) {
$path = str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';
$path = str_replace('_', DIRECTORY_SEPARATOR, $path);
$path = str_replace('\\', '/', $class) . '.php';
$path = str_replace('_', '/', $path);
$paths[] = $dir . '/' . $path;
}
}

Loading…
Cancel
Save