1
0
Fork 0

AutoloadGenerator.php miscalculates the path

Add tenary check to make sure relative specified paths arent seen as
absolute.

Fixises #94
pull/95/head
Henrik Bjørnskov 2011-11-07 09:28:48 +01:00
parent 20db55e3aa
commit 8180117584
1 changed files with 3 additions and 2 deletions

View File

@ -112,10 +112,11 @@ EOF;
foreach ($mapping as $namespace => $path) { foreach ($mapping as $namespace => $path) {
$autoloads[$type][] = array( $autoloads[$type][] = array(
'namespace' => $namespace, 'namespace' => $namespace,
'path' => $installPath.'/'.$path, 'path' => empty($installPath) ? $path : $installPath.'/'.$path,
); );
} }
} }
} }
foreach ($autoloads as $type => $maps) { foreach ($autoloads as $type => $maps) {