Commits

Anonymous committed 394d74c

Ups

Comments (0)

Files changed (2)

elgg/actions/admin/user/spammer.php

 		$entity->delete();
 	}
 
-	if($obj->spammer()) {
+	if($obj->ban()) {
 		system_message(sprintf(elgg_echo('admin:user:spammer:yes'), $name));
 	} else {
 		register_error(elgg_echo('admin:user:spammer:no'));

elgg/engine/lib/admin.php

 	register_action('admin/user/ban', false, "", true);
 	register_action('admin/user/unban', false, "", true);
 	register_action('admin/user/delete', false, "", true);
+	register_action('admin/user/spammer', false, "", true);
 	register_action('admin/user/resetpassword', false, "", true);
 	register_action('admin/user/makeadmin', false, "", true);
 	register_action('admin/user/removeadmin', false, "", true);