input->get('cid', ''); $model = $this->getModel('installed'); if ($model->publish($cid)) { $msg = JText::_('COM_LANGUAGES_MSG_DEFAULT_LANGUAGE_SAVED'); $type = 'message'; } else { $msg = $this->getError(); $type = 'error'; } $clientId = $model->getState('filter.client_id'); $this->setredirect('index.php?option=com_languages&view=installed&client='.$clientId, $msg, $type); } }