--- a/AdminReport.php Sat Jul 31 00:26:49 2010 -0400
+++ b/AdminReport.php Sat Jul 31 00:29:56 2010 -0400
@@ -71,7 +71,9 @@
{
$email = getConfig('contact_email');
- if ( !is_array($result = arp_send_mail($email, "[{$_SERVER['HTTP_HOST']}] Website bug report", "Sent from IP: {$_SERVER['REMOTE_ADDR']}\n\n---------------------------\n$comment")) )
+ list($pid, $ns) = RenderMan::strToPageID($page);
+ $pageurl = makeUrlComplete($ns, $pid);
+ if ( !is_array($result = arp_send_mail($email, "[{$_SERVER['HTTP_HOST']}] Website bug report", "Sent from IP: {$_SERVER['REMOTE_ADDR']}\nPage: $pageurl\n\n---------------------------\n$comment")) )
{
redirect(makeUrl($page), 'Report sent', 'Thank you, your report has been sent. Redirecting you back to the page...', 5);
}