getModel('pulls')->requestFromGithub(); $msg = JText::_('COM_PATCHTESTER_FETCH_SUCCESSFUL'); $type = 'message'; } catch (Exception $e) { $msg = $e->getMessage(); $type = 'error'; } $this->setRedirect(JRoute::_('index.php?option=com_patchtester&view=pulls', false), $msg, $type); } }