/** * Get external forum path from importer configuration * * You can usually remove this function if you are exporting Joomla component. * * @return string Relative path */ public function getPath($absolute = false) { if (!$this->external) { return; } return parent::getPath($absolute); }
/** * Get forum path from importer configuration * * @return bool */ public function getPath($absolute = false) { // Load rokBridge configuration (if exists) if ($this->rokbridge === null && version_compare(JVERSION, '1.6', '<')) { $this->rokbridge = JComponentHelper::getParams('com_rokbridge'); } $path = $this->rokbridge ? $this->rokbridge->get('phpbb3_path') : ''; if (!$this->params->get('path') && $path) { // Get phpBB3 path from rokBridge $this->relpath = $path; $this->basepath = JPATH_ROOT . "/{$this->relpath}"; return $absolute ? $this->basepath : $this->relpath; } return parent::getPath($absolute); }