protected function _setupManifest() { if ($this->install_method === 'discover_install') { return parent::_setupManifest(); } elseif ($this->package) { $koowa_manifests = JFolder::files($this->package, 'koowa-component\\.xml$', true, true); if (!empty($koowa_manifests)) { $this->type = 'koowa-component'; $this->manifest = simplexml_load_file($koowa_manifests[0]); } } return true; }