From: Thomas Mueller Date: Mon, 10 Jun 2013 15:27:21 +0000 (+0200) Subject: Let's just use '/' as we do almost everywhere - this change fixes two failing unit... X-Git-Tag: v6.0.0alpha2~615^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=988b539dd7d1fef93219f44852208f49d928e67f;p=nextcloud-server.git Let's just use '/' as we do almost everywhere - this change fixes two failing unit tests --- diff --git a/lib/autoloader.php b/lib/autoloader.php index 9615838a9a2..21170639092 100644 --- a/lib/autoloader.php +++ b/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; } }