Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed Oct 28, 2020
1 parent ac98db3 commit 95061eb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/HordeInstaller.php
Expand Up @@ -46,18 +46,22 @@ protected function _setupDirs(PackageInterface $package)
$this->hordeRegistryDir = $this->hordeDir . '/config/registry.d/';
$this->jsDir = $this->webDir . '/js';
list($this->vendorName, $this->packageName) = explode('/', $package->getName(), 2);

switch ($package->getType()) {
case 'horde-application':
$this->packageDir = $this->webDir . '/' . $this->packageName;
break;
break;

case 'horde-theme':
$this->packageDir = $this->webDir . '/themes/' . $package->getPrettyName();
break;
break;

case 'horde-library':
default:
$this->packageDir = parent::getInstallPath($package);
break;
break;
}

$this->packageDocRegistryDir = $this->packageDir . '/doc/registry.d/';
$this->presetDir = $this->projectRoot . '/presets/' . $this->packageName;
}
Expand Down

0 comments on commit 95061eb

Please sign in to comment.