Fix the wrong message for edit and delete group in admin

This commit is contained in:
Hadi Nategh 2014-05-16 13:32:49 +00:00
parent f3979fac84
commit a4a3f7b61f
2 changed files with 5 additions and 5 deletions

View File

@ -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
return lang("Account '%1' deleted.",$this->account)."\n\n";
return lang("'%1' '%2' deleted.",($account_id < 0 ? "Group": "Account"),$this->account)."\n\n";
}
/**

View File

@ -112,7 +112,7 @@ class admin_cmd_edit_group extends admin_cmd
// make new account_id available to caller
$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));
}