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'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. */ protected function addToolbar() { JToolBarHelper::title('Joomla! Patch Tester', 'patchtester'); JToolBarHelper::preferences('com_patchtester'); JFactory::getDocument()->addStyleDeclaration( '.icon-48-patchtester {background-image: url(components/com_patchtester/assets/images/icon-48-patchtester.png);}' ); } }