Skip to content

Commit 1303be4

Browse files
Merge pull request #858 from joomlatools/feature/857-extensions
Refactor extension bootstrapper and installer
2 parents 781673b + 2b37ffe commit 1303be4

File tree

2 files changed

+295
-207
lines changed

2 files changed

+295
-207
lines changed

code/config/config.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ public function getExtensionPath()
8282
return (array) KObjectConfig::unbox($this->getConfig()->extension_path);
8383
}
8484

85+
public function getInstallPath()
86+
{
87+
return $this->getConfig()->install_path ?? $this->getSitePath('extensions');
88+
}
89+
90+
public function getArchivePath()
91+
{
92+
return $this->getConfig()->archive_path ?? $this->getConfig()->debug ? $this->getSitePath('extensions') : false;
93+
}
94+
8595
private function __loadConfig($path)
8696
{
8797
$options = array();

0 commit comments

Comments
 (0)