Source for file setlanguage.php
Documentation is available at setlanguage.php
* @package Joomla.Installation
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Controller class to set the language for the Joomla Installer.
* @package Joomla.Installation
* Execute the controller.
/* @var InstallationApplicationWeb $app */
// Check for request forgeries.
// Very crude workaround to give an error message when JSON is disabled
$app->setHeader('status', 500);
$app->setHeader('Content-Type', 'application/json; charset=utf-8');
.
'","error":true,"header":"' .
JText::_('INSTL_HEADER_ERROR') .
'","message":"' .
JText::_('INSTL_WARNJSON') .
'"}';
// Check for potentially unwritable session
$this->sendResponse(new Exception(JText::_('INSTL_COOKIES_NOT_ENABLED'), 500));
// Get the posted values from the request and validate them.
$data =
$this->input->post->get('jform', array(), 'array');
$return =
$model->validate($data, 'preinstall');
// Check for validation errors.
* The validate method enqueued all messages for us, so we just need to
* redirect back to the site setup screen.
$r->view =
$this->input->getWord('view', 'site');
$app->sendJsonResponse($r);
// Store the options in the session.
$model->storeOptions($return);
$language->setLanguage($return['language']);
$r->view =
$this->input->getWord('view', 'site');
$app->sendJsonResponse($r);
Documentation generated on Tue, 19 Nov 2013 15:12:57 +0100 by phpDocumentor 1.4.3