Skip to content

Commit

Permalink
Merge pull request #2 from geekwright/master
Browse files Browse the repository at this point in the history
Change getPackageBasePath() to getInstallPath()
  • Loading branch information
geekwright committed Mar 25, 2016
2 parents 7e7dcd0 + c3e3357 commit 9fc6cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ModuleInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class ModuleInstaller extends LibraryInstaller
*
* @return string install path relative to composer.json
*/
public function getPackageBasePath(PackageInterface $package)
public function getInstallPath(PackageInterface $package)
{
$moddir = explode('/', $package->getName());

$xoops_modules = '../modules/';

$extra = $this->composer->getPackage()->getExtra();
if (isset($extra['xoops_modules_path'])) {
$xoops_root = $extra['xoops_modules_path'];
$xoops_modules = $extra['xoops_modules_path'];
}

return $xoops_modules . $moddir[1];
Expand Down

0 comments on commit 9fc6cb7

Please sign in to comment.