From deccaaadb563b218bc07700d64ee6357d79e903c Mon Sep 17 00:00:00 2001 From: geekwright Date: Tue, 19 Feb 2019 21:21:18 -0600 Subject: [PATCH] Fix directories Correcting for XoopsCore directory structure changes. --- README.md | 2 +- src/ModuleInstaller.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d7681f6..e489f14 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ The `composer.json` of the main xoops-library package needs to set the filesyste ```JSON "extra": { - "xoops_modules": "/home/user/htdocs/modules/" + "xoops_modules": "/home/user/htdocs/modules" } ``` diff --git a/src/ModuleInstaller.php b/src/ModuleInstaller.php index 04badd2..f6808ab 100644 --- a/src/ModuleInstaller.php +++ b/src/ModuleInstaller.php @@ -21,14 +21,14 @@ public function getInstallPath(PackageInterface $package) { $moddir = explode('/', $package->getName()); - $xoops_modules = '../modules/'; + $xoops_modules = './htdocs/modules'; $extra = $this->composer->getPackage()->getExtra(); if (isset($extra['xoops_modules_path'])) { $xoops_modules = $extra['xoops_modules_path']; } - return $xoops_modules . $moddir[1]; + return $xoops_modules . '/' . $moddir[1]; } /**