Source for file installed.php

Documentation is available at installed.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_languages
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Languages Controller
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_languages
  17.  * @since       1.5
  18.  */
  19. {
  20.     /**
  21.      * task to set the default language
  22.      */
  23.     public function setDefault()
  24.     {
  25.         // Check for request forgeries
  26.         JSession::checkToken(or jexit(JText::_('JInvalid_Token'));
  27.  
  28.         $cid $this->input->get('cid''');
  29.         $model $this->getModel('installed');
  30.         if ($model->publish($cid))
  31.         {
  32.             $msg JText::_('COM_LANGUAGES_MSG_DEFAULT_LANGUAGE_SAVED');
  33.             $type 'message';
  34.         }
  35.         else
  36.         {
  37.             $msg $this->getError();
  38.             $type 'error';
  39.         }
  40.  
  41.         $clientId $model->getState('filter.client_id');
  42.         $this->setredirect('index.php?option=com_languages&view=installed&client='.$clientId$msg$type);
  43.     }
  44. }

Documentation generated on Tue, 19 Nov 2013 15:05:41 +0100 by phpDocumentor 1.4.3