From c3e3357e2f65969f7c59cb999edaae5dc833ad1d Mon Sep 17 00:00:00 2001 From: geekwright Date: Thu, 24 Mar 2016 21:33:21 -0500 Subject: [PATCH] Change getPackageBasePath() to getInstallPath() --- src/ModuleInstaller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModuleInstaller.php b/src/ModuleInstaller.php index df4ed94..04badd2 100644 --- a/src/ModuleInstaller.php +++ b/src/ModuleInstaller.php @@ -17,7 +17,7 @@ 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()); @@ -25,7 +25,7 @@ public function getPackageBasePath(PackageInterface $package) $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];