setState($this->initializeState($model)); $model->requestFromGithub(); $msg = \JText::_('COM_PATCHTESTER_FETCH_SUCCESSFUL'); $type = 'message'; } catch (\Exception $e) { $msg = $e->getMessage(); $type = 'error'; } $this->getApplication()->enqueueMessage($msg, $type); $this->getApplication()->redirect(\JRoute::_('index.php?option=com_patchtester', false)); } }