public function display($tpl = null) { if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } if (GAnalyticsHelper::isJoomlaVersion('2.5')) { $this->setLayout($this->getLayout() . '_25'); } if (GAnalyticsHelper::isJoomlaVersion('3')) { $this->setLayout($this->getLayout() . '_3'); } $this->init(); $this->addToolbar(); parent::display($tpl); }