public function finish() { $Redconfiguration = new Redconfiguration(); $post = JRequest::get('post'); $msg = ""; /** * install sample data */ if (isset($post['installcontent'])) { if ($this->demoContentInsert()) { $msg .= JText::_('COM_REDSHOP_SAMPLE_DATA_INSTALLED') . "<br /> "; } } $this->isTmpFile(); if ($Redconfiguration->storeFromTMPFile()) { $msg .= JText::_('COM_REDSHOP_FINISH_WIZARD'); $link = 'index.php?option=com_redshop'; } else { $substep = 4; $msg .= JText::_('COM_REDSHOP_ERROR_SAVING_DETAIL'); $link = 'index.php?option=com_redshop&step=' . $substep; } $this->setRedirect($link, $msg); }