aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views/default/admin/overview/reportedcontent.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/reportedcontent/views/default/admin/overview/reportedcontent.php')
-rw-r--r--mod/reportedcontent/views/default/admin/overview/reportedcontent.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/reportedcontent/views/default/admin/overview/reportedcontent.php b/mod/reportedcontent/views/default/admin/overview/reportedcontent.php
index a12a9a696..0cf8643a3 100644
--- a/mod/reportedcontent/views/default/admin/overview/reportedcontent.php
+++ b/mod/reportedcontent/views/default/admin/overview/reportedcontent.php
@@ -1,16 +1,17 @@
<?php
/**
- * Elgg Reported content
+ * Elgg Reported content admin page
*
* @package ElggReportedContent
*/
$title = elgg_view_title(elgg_echo('reportedcontent'));
-$reported = elgg_get_entities(array('types' => 'object', 'subtypes' => 'reported_content', 'limit' => 9999));
-$list = elgg_view("reportedcontent/listing", array('entity' => $reported));
+$list = elgg_list_entities(array('types' => 'object', 'subtypes' => 'reported_content'));
+if (!$list) {
+ $list = '<p class="margin_top">' . elgg_echo('reportedcontent:none') . '</p>';
+}
-// Display main admin menu
$body = <<<__HTML
$title
$list