aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 11:17:44 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 11:17:44 +0000
commit10d2d5f1aec057ab5023890d407b59e2366c4398 (patch)
treed3c18cc54f6eb3babcb7b3acc5178edb352ff629 /actions/admin
parent95b89b5b595d688b54abc98158623ecdea40d330 (diff)
downloadelgg-10d2d5f1aec057ab5023890d407b59e2366c4398.tar.gz
elgg-10d2d5f1aec057ab5023890d407b59e2366c4398.tar.bz2
Fixes #241: Changed order, delete user using object's delete method rather than the low level function
git-svn-id: https://code.elgg.org/elgg/trunk@1887 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/user/delete.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/admin/user/delete.php b/actions/admin/user/delete.php
index 50f654734..300fa5671 100644
--- a/actions/admin/user/delete.php
+++ b/actions/admin/user/delete.php
@@ -21,7 +21,7 @@
if ( ($obj instanceof ElggUser) && ($obj->canEdit()))
{
- if (delete_entity($guid))
+ if ($obj->delete())
system_message(elgg_echo('admin:user:delete:yes'));
else
register_error(elgg_echo('admin:user:delete:no'));