diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/reportedcontent/views/default/reportedcontent/footer_link.php | 8 |
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> |