Commit 3a34c80a authored by Liam Stewart's avatar Liam Stewart Committed by Son Nguyen
Browse files

Provide link to objectionable artefact in email[1044288]

"Complaint relates to: [Link]" now goes straight to artefact instead of profile page of the reported user.

Change-Id: Idd7453e9a53094afa6f6951d3e2b1cc687d56eff
parent 447a920e
...@@ -118,7 +118,7 @@ $string['objectionablecontentviewartefacthtml'] = '<div style="padding: 0.5em 0; ...@@ -118,7 +118,7 @@ $string['objectionablecontentviewartefacthtml'] = '<div style="padding: 0.5em 0;
<p>Complaint relates to: <a href="%s">%s</a></p> <p>Complaint relates to: <a href="%s">%s</a></p>
<p>Reported by: <a href="%s">%s</a></p> <p>Reported by: <a href="%s">%s</a></p>
</div>'; </div>';
$string['objectionablecontentviewartefacttext'] = 'Objectionable content on "%s" in "%s" reported by %s $string['objectionablecontentviewartefacttext'] = 'Objectionable content on %s in "%s" reported by %s
%s %s
------------------------------------------------------------------------ ------------------------------------------------------------------------
......
...@@ -955,7 +955,7 @@ class ActivityTypeObjectionable extends ActivityTypeAdmin { ...@@ -955,7 +955,7 @@ class ActivityTypeObjectionable extends ActivityTypeAdmin {
return get_string_from_language( return get_string_from_language(
$user->lang, 'objectionablecontentviewartefacttext', 'activity', $user->lang, 'objectionablecontentviewartefacttext', 'activity',
$this->view->get('title'), $this->artefact->get('title'), display_default_name($this->reporter), $ctime, $this->view->get('title'), $this->artefact->get('title'), display_default_name($this->reporter), $ctime,
$this->message, $this->view->get_url(), $reporterurl $this->message, get_config('wwwroot') . "artefact/artefact.php?artefact=" . $this->artefact->get('id') . "&view=" . $this->view->get('id'), $reporterurl
); );
} }
} }
...@@ -978,7 +978,7 @@ class ActivityTypeObjectionable extends ActivityTypeAdmin { ...@@ -978,7 +978,7 @@ class ActivityTypeObjectionable extends ActivityTypeAdmin {
return get_string_from_language( return get_string_from_language(
$user->lang, 'objectionablecontentviewartefacthtml', 'activity', $user->lang, 'objectionablecontentviewartefacthtml', 'activity',
$viewtitle, hsc($this->artefact->get('title')), $reportername, $ctime, $viewtitle, hsc($this->artefact->get('title')), $reportername, $ctime,
$message, $this->view->get_url(), $viewtitle, $message, get_config('wwwroot') . "artefact/artefact.php?artefact=" . $this->artefact->get('id') . "&view=" . $this->view->get('id'), hsc($this->artefact->get('title')),
$reporterurl, $reportername $reporterurl, $reportername
); );
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment