From d605864ae27336eca76621aeb45dfe599ef64178 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 1 Dec 2013 09:25:14 -0500 Subject: [PATCH] reverted 5425dc92c6ce3eea5953a9bced79af02856f1e94 --- extensions/composer/Installer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/composer/Installer.php b/extensions/composer/Installer.php index fb66d16..d8d799f 100644 --- a/extensions/composer/Installer.php +++ b/extensions/composer/Installer.php @@ -113,11 +113,10 @@ class Installer extends LibraryInstaller $path = $this->vendorDir . '/' . $package->getName() . '/' . $path; } $path = $fs->normalizePath($path); - $targetDir = $package->getTargetDir(); if (strpos($path . '/', $vendorDir . '/') === 0) { - $aliases["@$name"] = '' . ($targetDir === null ? '': '/' . $targetDir) . substr($path, strlen($vendorDir)); + $aliases["@$name"] = '' . substr($path, strlen($vendorDir)) . '/' . $name; } else { - $aliases["@$name"] = $path . ($targetDir === null ? '': '/' . $targetDir); + $aliases["@$name"] = $path . '/' . $name; } } return $aliases;