aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 12:40:56 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 12:40:56 +0000
commit087a2931c19865cd18460a63ce33e050b23ce50b (patch)
tree785a5b83a69363929aafedc0a2d74ae8b6025e95 /views/default/page_elements
parent17592d85d5e632c85cc12dc3f31d23e2acb84065 (diff)
downloadelgg-087a2931c19865cd18460a63ce33e050b23ce50b.tar.gz
elgg-087a2931c19865cd18460a63ce33e050b23ce50b.tar.bz2
Now only displays 'report this' when plugin is enabled.
git-svn-id: https://code.elgg.org/elgg/trunk@1898 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r--views/default/page_elements/owner_block.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php
index d8ad2e069..c2cb75a26 100644
--- a/views/default/page_elements/owner_block.php
+++ b/views/default/page_elements/owner_block.php
@@ -67,11 +67,14 @@ END;
$contents .= "<div id=\"owner_block_bookmark_this\"><a href=\"javascript:location.href='". $CONFIG->wwwroot . "mod/bookmarks/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label3}</a></div>";
}
-
- //report this button
- $label4 = elgg_echo('Report this');
- $contents .= "<div id=\"owner_block_report_this\"><a href=\"javascript:location.href='". $CONFIG->wwwroot . "mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label4}</a></div>";
-
+
+ //report this button
+ if (is_plugin_enabled('reportedcontent'))
+ {
+ $label4 = elgg_echo('Report this');
+ $contents .= "<div id=\"owner_block_report_this\"><a href=\"javascript:location.href='". $CONFIG->wwwroot . "mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)\">{$label4}</a></div>";
+ }
+
}