From d38d4c37a80c57233c7ab4481092e4306a51e8a7 Mon Sep 17 00:00:00 2001 From: Technosophos Date: Fri, 26 Oct 2012 15:48:08 -0500 Subject: [PATCH] WINDOWS: Fixed autoloader. --- src/HPCloud/Bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HPCloud/Bootstrap.php b/src/HPCloud/Bootstrap.php index 088d367..95a12eb 100644 --- a/src/HPCloud/Bootstrap.php +++ b/src/HPCloud/Bootstrap.php @@ -276,8 +276,8 @@ class Bootstrap { } // We need the path up to, but not including, the root HPCloud dir: - $local_path = substr(self::$basedir, 0, strrpos(self::$basedir, '/HPCloud')); - + $loc = DIRECTORY_SEPARATOR . 'HPCloud'; + $local_path = substr(self::$basedir, 0, strrpos(self::$basedir, $loc)); array_unshift($components, $local_path); $path = implode(DIRECTORY_SEPARATOR, $components) . '.php';