t = PhocaGalleryUtils::setVars('fe'); $this->r = new PhocaGalleryRenderAdminview(); $this->sidebar = Sidebar::render(); HTMLHelper::stylesheet( 'media/com_phocagallery/css/administrator/phocagallery.css' ); $app = Factory::getApplication(); $this->t['error'] = $app->input->get('error'); switch ($this->t['error']) { case 1: $this->t['errormessage'] = Text::_('COM_PHOCAGALLERY_ERROR_1_MEMORY'); break; default: $this->t['errormessage'] = Text::_('COM_PHOCAGALLERY_ERROR_1_MEMORY');//TO DO break; } $this->addToolbar(); parent::display($tpl); } protected function addToolBar(){ require_once JPATH_COMPONENT.'/helpers/phocagallerycp.php'; $canDo = PhocaGalleryCpHelper::getActions(NULL); ToolbarHelper::title(Text::_('COM_PHOCAGALLERY_PG_ERROR'), 'warning'); // This button is unnecessary but it is displayed because Joomla! design bug $bar = Toolbar::getInstance( 'toolbar' ); $dhtml = ' '.Text::_('COM_PHOCAGALLERY_CONTROL_PANEL').''; $bar->appendButton('Custom', $dhtml); if ($canDo->get('core.admin')) { ToolbarHelper::preferences('com_phocagallery'); } ToolbarHelper::help( 'screen.phocagallery', true ); } } ?>