get('Form'); $data = $this->get('Data'); $user = JFactory::getUser(); // Check for model errors. if ($errors = $this->get('Errors')) { JError::raiseError(500, implode('
', $errors)); return false; } // Bind the form to the data. if ($form && $data) { $form->bind($data); } // Get the params for com_users. $usersParams = JComponentHelper::getParams('com_users'); // Get the params for com_media. $mediaParams = JComponentHelper::getParams('com_media'); // Load settings for the FTP layer. $ftp = JClientHelper::setCredentialsFromRequest('ftp'); $this->form = &$form; $this->data = &$data; $this->ftp = &$ftp; $this->usersParams = &$usersParams; $this->mediaParams = &$mediaParams; $this->components = ConfigHelperComponent::getComponentsWithConfig(); ConfigHelperComponent::loadLanguageForComponents($this->components); $this->userIsSuperAdmin = $user->authorise('core.admin'); $this->addToolbar(); parent::display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function addToolbar() { JToolbarHelper::title(JText::_('COM_CONFIG_GLOBAL_CONFIGURATION'), 'config.png'); JToolbarHelper::apply('application.apply'); JToolbarHelper::save('application.save'); JToolbarHelper::divider(); JToolbarHelper::cancel('application.cancel'); JToolbarHelper::divider(); JToolbarHelper::help('JHELP_SITE_GLOBAL_CONFIGURATION'); } }