This commit is contained in:
Qiang Xue
2013-11-02 23:19:57 -04:00
parent 1c2d1e8ef7
commit eb39d1ffc3

View File

@@ -95,7 +95,7 @@ class Installer extends LibraryInstaller
}
$path = $fs->normalizePath($path);
if (strpos($path . '/', $vendorDir . '/') === 0) {
return ["@$name" => '<vendor-dir>/' . substr($path, strlen($vendorDir))] . '/' . $name;
return ["@$name" => '<vendor-dir>/' . substr($path, strlen($vendorDir)) . '/' . $name];
} else {
return ["@$name" => $path . '/' . $name];
}