aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/reportedcontent/actions/add.php2
-rw-r--r--mod/reportedcontent/actions/archive.php2
-rw-r--r--mod/reportedcontent/actions/delete.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/add.php
index c43e14baa..de1c1d3db 100644
--- a/mod/reportedcontent/actions/add.php
+++ b/mod/reportedcontent/actions/add.php
@@ -26,7 +26,7 @@
$entity->access_id = $access;
if ($entity->save()) {
- if (!trigger_plugin_hook('reportedcontent:add', $entity->type, array('entity'=>$entity), true)) {
+ if (!trigger_plugin_hook('reportedcontent:add', $reported->type, array('entity'=>$reported), true)) {
$entity->delete();
register_error(elgg_echo('reportedcontent:failed'));
} else {
diff --git a/mod/reportedcontent/actions/archive.php b/mod/reportedcontent/actions/archive.php
index 6f4a41226..770b4aa62 100644
--- a/mod/reportedcontent/actions/archive.php
+++ b/mod/reportedcontent/actions/archive.php
@@ -21,7 +21,7 @@
if ($reported->getSubtype() == "reported_content" && $reported->canEdit()) {
// change the state
- if (!trigger_plugin_hook('reportedcontent:archive', $entity->type, array('entity'=>$entity), true)) {
+ if (!trigger_plugin_hook('reportedcontent:archive', $reported->type, array('entity'=>$reported), true)) {
system_message(elgg_echo("reportedcontent:notarchived"));
forward("pg/reportedcontent/");
}
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/");
}