Browse Source

Squash a few more bugs

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 10 years ago
parent
commit
726e2fdc0f

+ 4 - 4
Sources/tasks/MemberReport-Notify.php

@@ -63,7 +63,7 @@ class MemberReport_Notify_Background extends SMF_BackgroundTask
 					'extra' => serialize(
 						array(
 							'report_link' => '?action=moderate;area=reportedmembers;report=' . $this->_details['report_id'], // We don't put $scripturl in these!
-							'user_name' => $this->_details['membername'],
+							'user_name' => $this->_details['user_name'],
 						)
 					),
 				);
@@ -112,10 +112,10 @@ class MemberReport_Notify_Background extends SMF_BackgroundTask
 			foreach ($emails as $this_lang => $recipients)
 			{
 				$replacements = array(
-					'MEMBERNAME' => $member_name,
+					'MEMBERNAME' => $this->_details['user_name'],
 					'REPORTERNAME' => $this->_details['sender_name'],
-					'PROFILELINK' => $scripturl . '?action=profile;u=' . $this->_details['user_id'],
-					'REPORTLINK' => $scripturl . '?action=moderate;area=reportedmembers;report=' . $this->_details['report_id'],
+					'PROFILELINK' => $scripturl . '?action=profile;u=' . $this->_details['member_id'],
+					'REPORTLINK' => $scripturl . '?action=moderate;area=reportedmembers;sa=details;rid=' . $this->_details['report_id'],
 					'COMMENT' => $this->_details['comment'],
 				);
 

+ 1 - 1
Sources/tasks/MemberReportReply-Notify.php

@@ -89,7 +89,7 @@ class MemberReportReply_Notify_Background extends SMF_BackgroundTask
 					'is_read' => 0,
 					'extra' => serialize(
 						array(
-							'report_link' => '?action=moderate;area=reportedmembers;report=' . $this->_details['report_id'], // We don't put $scripturl in these!
+							'report_link' => '?action=moderate;area=reportedmembers;sa=details;rid=' . $this->_details['report_id'], // We don't put $scripturl in these!
 							'user_name' => $this->_details['user_name'],
 						)
 					),

+ 1 - 1
Sources/tasks/MsgReport-Notify.php

@@ -97,7 +97,7 @@ class MsgReport_Notify_Background extends SMF_BackgroundTask
 					'is_read' => 0,
 					'extra' => serialize(
 						array(
-							'report_link' => '?action=moderate;area=reportedposts;report=' . $this->_details['report_id'], // We don't put $scripturl in these!
+							'report_link' => '?action=moderate;area=reportedposts;sa=details;rid=' . $this->_details['report_id'], // We don't put $scripturl in these!
 						)
 					),
 				);

+ 1 - 1
Sources/tasks/MsgReportReply-Notify.php

@@ -124,7 +124,7 @@ class MsgReportReply_Notify_Background extends SMF_BackgroundTask
 					'is_read' => 0,
 					'extra' => serialize(
 						array(
-							'report_link' => '?action=moderate;area=reportedposts;report=' . $this->_details['report_id'], // We don't put $scripturl in these!
+							'report_link' => '?action=moderate;area=reportedposts;sa=details;rid=' . $this->_details['report_id'], // We don't put $scripturl in these!
 						)
 					),
 				);