forked from extern/egroupware
Fix the wrong message for edit and delete group in admin
This commit is contained in:
parent
f3979fac84
commit
a4a3f7b61f
@ -7,13 +7,13 @@
|
|||||||
* @package admin
|
* @package admin
|
||||||
* @copyright (c) 2007 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
* @copyright (c) 2007 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
||||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* admin command: delete an account (user or group)
|
* admin command: delete an account (user or group)
|
||||||
*/
|
*/
|
||||||
class admin_cmd_delete_account extends admin_cmd
|
class admin_cmd_delete_account extends admin_cmd
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -37,7 +37,7 @@ class admin_cmd_delete_account extends admin_cmd
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* delete an account (user or group)
|
* delete an account (user or group)
|
||||||
*
|
*
|
||||||
* @param boolean $check_only=false only run the checks (and throw the exceptions), but not the command itself
|
* @param boolean $check_only=false only run the checks (and throw the exceptions), but not the command itself
|
||||||
* @return string success message
|
* @return string success message
|
||||||
* @throws egw_exception_no_admin
|
* @throws egw_exception_no_admin
|
||||||
@ -74,7 +74,7 @@ class admin_cmd_delete_account extends admin_cmd
|
|||||||
}
|
}
|
||||||
if (!$this->is_user) $GLOBALS['egw']->accounts->delete($account_id); // groups get not deleted via the admin hook, as users
|
if (!$this->is_user) $GLOBALS['egw']->accounts->delete($account_id); // groups get not deleted via the admin hook, as users
|
||||||
|
|
||||||
return lang("Account '%1' deleted.",$this->account)."\n\n";
|
return lang("'%1' '%2' deleted.",($account_id < 0 ? "Group": "Account"),$this->account)."\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -112,7 +112,7 @@ class admin_cmd_edit_group extends admin_cmd
|
|||||||
// make new account_id available to caller
|
// make new account_id available to caller
|
||||||
$this->account = $data['account_id'];
|
$this->account = $data['account_id'];
|
||||||
|
|
||||||
return lang("Account %1 %2", $data['account_lid'] ? $data['account_lid'] : accounts::id2name($this->account),
|
return lang("Group %1 %2", $data['account_lid'] ? $data['account_lid'] : accounts::id2name($this->account),
|
||||||
$update ? lang('updated') : lang("created with id #%1", $this->account));
|
$update ? lang('updated') : lang("created with id #%1", $this->account));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user