WINDOWS: Fixed autoloader.

This commit is contained in:
Technosophos 2012-10-26 15:48:08 -05:00
parent 07318bdf90
commit d38d4c37a8

View File

@ -276,8 +276,8 @@ class Bootstrap {
} }
// We need the path up to, but not including, the root HPCloud dir: // 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); array_unshift($components, $local_path);
$path = implode(DIRECTORY_SEPARATOR, $components) . '.php'; $path = implode(DIRECTORY_SEPARATOR, $components) . '.php';