diff options
Diffstat (limited to 'mod/reportedcontent/actions/delete.php')
-rw-r--r-- | mod/reportedcontent/actions/delete.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/reportedcontent/actions/delete.php b/mod/reportedcontent/actions/delete.php index a4090fb19..98d3263c2 100644 --- a/mod/reportedcontent/actions/delete.php +++ b/mod/reportedcontent/actions/delete.php @@ -21,7 +21,7 @@ if ($reported->getSubtype() == "reported_content" && $reported->canEdit()) {
// Delete it!
- if (!trigger_plugin_hook('reportedcontent:delete', $entity->type, array('entity'=>$entity), true)) {
+ if (!trigger_plugin_hook('reportedcontent:delete', $reported->type, array('entity'=>$reported), true)) {
register_error(elgg_echo("reportedcontent:notdeleted"));
forward("pg/reportedcontent/");
}
|