aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 02:51:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 02:51:33 +0000
commit92f27f915e3a5e536cefb3e1c7f13ef2b4efc467 (patch)
tree3103150365f8ce64b4d3c8f4ff0924534cd93c87 /mod/reportedcontent/views
parent313f19f489d6eea610f1833587049f16977af781 (diff)
downloadelgg-92f27f915e3a5e536cefb3e1c7f13ef2b4efc467.tar.gz
elgg-92f27f915e3a5e536cefb3e1c7f13ef2b4efc467.tar.bz2
bringing us a little closer to validating
git-svn-id: http://code.elgg.org/elgg/trunk@8066 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent/views')
-rw-r--r--mod/reportedcontent/views/default/reportedcontent/footer_link.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/reportedcontent/views/default/reportedcontent/footer_link.php b/mod/reportedcontent/views/default/reportedcontent/footer_link.php
index 4e893522c..58a19b343 100644
--- a/mod/reportedcontent/views/default/reportedcontent/footer_link.php
+++ b/mod/reportedcontent/views/default/reportedcontent/footer_link.php
@@ -7,10 +7,14 @@
$title = elgg_echo('reportedcontent:this:tooltip');
$text = elgg_echo('reportedcontent:this');
-?>
+$url = elgg_get_site_url() . 'pg/reportedcontent/add/?address=';
+$href = "javascript:location.href='$url'";
+$href .= "+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)";
+$href = elgg_format_url($href);
+?>
-<a class="report-this" href="javascript:location.href='<?php echo elgg_get_site_url(); ?>pg/reportedcontent/add/?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)" title="<?php echo $title; ?>">
+<a class="report-this" href="<?php echo $href; ?>" title="<?php echo $title; ?>">
<span class="elgg-icon report-this-icon"></span>
<?php echo $text; ?>
</a>