/** * Method to render the view. * * @return string The rendered view. * * @since 2.0 */ public function render() { if (!extension_loaded('openssl')) { $this->envErrors[] = \JText::_('COM_PATCHTESTER_REQUIREMENT_OPENSSL'); } if (!in_array('https', stream_get_wrappers())) { $this->envErrors[] = \JText::_('COM_PATCHTESTER_REQUIREMENT_HTTPS'); } // Only process the data if there are no environment errors if (!count($this->envErrors)) { $this->state = $this->model->getState(); $this->items = $this->model->getItems(); $this->pagination = $this->model->getPagination(); } $this->addToolbar(); return parent::render(); }
/** * Method to render the view. * * @return string The rendered view. * * @since 2.0 */ public function render() { if (!extension_loaded('openssl')) { $this->envErrors[] = \JText::_('COM_PATCHTESTER_REQUIREMENT_OPENSSL'); } if (!in_array('https', stream_get_wrappers())) { $this->envErrors[] = \JText::_('COM_PATCHTESTER_REQUIREMENT_HTTPS'); } // Only process the data if there are no environment errors if (!count($this->envErrors)) { $this->state = $this->model->getState(); $this->items = $this->model->getItems(); $this->pagination = $this->model->getPagination(); $this->trackerAlias = TrackerHelper::getTrackerAlias($this->state->get('github_user'), $this->state->get('github_repo')); } $this->addToolbar(); // Make text strings available in the JavaScript API \JText::script('COM_PATCHTESTER_CONFIRM_RESET'); // Set a warning on 4.0 branch if (version_compare(JVERSION, '4.0', 'ge')) { \JFactory::getApplication()->enqueueMessage(\JText::_('COM_PATCHTESTER_40_WARNING'), 'warning'); } return parent::render(); }