aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views/default/admin
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 00:56:55 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-29 00:56:55 +0000
commit855b008013aad0426ab0332b040bddb033bb6af9 (patch)
tree70c137e5c9a9c916bb9f8172daf3bd0483895bf6 /mod/reportedcontent/views/default/admin
parent71dc8cbf9eecb4de149bc96bb5758b866116b1c8 (diff)
downloadelgg-855b008013aad0426ab0332b040bddb033bb6af9.tar.gz
elgg-855b008013aad0426ab0332b040bddb033bb6af9.tar.bz2
cleaned up the reported content plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7466 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent/views/default/admin')
-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