Back to FileAdapter class

Method setupInstallPaths

protected void
setupInstallPaths
()
Method to do any prechecks and setup the install paths for the extension
Returns
  • void
Since
  • 3.4
Class: FileAdapter
Project: Joomla

Method setupInstallPaths - Source code

/**
 * Method to do any prechecks and setup the install paths for the extension
 *
 * @return  void
 *
 * @since   3.4
 */
protected function setupInstallPaths()
{
    // Set the file root path
    if ($this->name === 'files_joomla') {
        // If we are updating the Joomla core, set the root path to the root of Joomla
        $this->parent->setPath('extension_root', JPATH_ROOT);
    } else {
        $this->parent->setPath('extension_root', JPATH_MANIFESTS . '/files/' . $this->element);
    }
}