Maybe I could include the page id in the report too default tip
authorDan Fuhry <dan@enanocms.org>
Sat, 31 Jul 2010 00:29:56 -0400
changeset 2 e4a8a8e1a50d
parent 1 13ac3d9d47b2
Maybe I could include the page id in the report too
AdminReport.php
--- 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);
 			}