english/administrator/components/com_users/controllers/config.php
/**
	 * Method to save the configuration.
	 *
	 * @return	bool	True on success, false on failure.
	 * @since	1.0
	 */
Method to save the configuration.
@return      bool    True on success, false on failure.
Method to save the configuration . @return bool True on success false on failure .
public function save()
	{
		JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
		$model	= $this->getModel('Config');
		$return	= $model->save();
		if ($return === false) {
			$message = JText::sprintf('COM_USERS_CONFIG_SAVE_FAILED', $model->getError());
			$this->setRedirect('index.php?option=com_users&view=config&tmpl=component', $message, 'notice');
			return false;
		}
		else {
			$this->setRedirect('index.php?option=com_users&view=config&layout=close&tmpl=component');
			return true;
		}
	}
public function save ( ) { JRequest :: checkToken ( ) or jexit ( JText :: _ ( 'JINVALID_TOKEN' ) ) ; $ model = $ this -> getModel ( 'Config' ) ; $ return = $ model -> save ( ) ; if ( $ return === false ) { $ message = JText :: sprintf ( 'COM_USERS_CONFIG_SAVE_FAILED' , $ model -> getError ( ) ) ; $ this -> setRedirect ( 'index.php?option=com_users&view=config&tmpl=component' , $ message , 'notice' ) ; return false ; } else { $ this -> setRedirect ( 'index.php?option=com_users&view=config&layout=close&tmpl=component' ) ; return true ; } }
Method to save the configuration.
Method to save the configuration .
// Check for request forgeries. // Save the configuration.