enqueueMessage('Your system does not meet the requirements to run the PullTester extension:', 'error'); foreach ($checkErrs as $error) { $application->enqueueMessage($error, 'error'); } return $this; } $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->patches = $this->get('AppliedPatches'); $this->pagination = $this->get('Pagination'); // Check for errors. $errors = $this->get('Errors'); if (count($errors)) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); return parent::display($tpl); } /** * Add the page title and toolbar. * * @return void * * @since 1.0 */ protected function addToolbar() { JToolBarHelper::title(JText::_('COM_PATCHTESTER'), 'patchtester'); JToolbarHelper::custom('purge', 'delete.png', 'delete_f2.png', 'COM_PATCHTESTER_PURGE_CACHE', false); JToolBarHelper::preferences('com_patchtester'); JFactory::getDocument()->addStyleDeclaration( '.icon-48-patchtester {background-image: url(components/com_patchtester/assets/images/icon-48-patchtester.png);}' ); } }