Skip to content
Snippets Groups Projects
Commit 435fa054 authored by Friederike Schwager's avatar Friederike Schwager
Browse files

Display author of private/personal comments correctly on overview tab

parent 2ac814d0
No related branches found
No related tags found
No related merge requests found
...@@ -1548,7 +1548,7 @@ function pdfannotator_print_reports($reports, $thiscourse, $url, $currentpage, $ ...@@ -1548,7 +1548,7 @@ function pdfannotator_print_reports($reports, $thiscourse, $url, $currentpage, $
function pdfannotator_questionstable_add_row($thiscourse, $table, $question, $urlparams, $showdropdown) { function pdfannotator_questionstable_add_row($thiscourse, $table, $question, $urlparams, $showdropdown) {
global $CFG, $PAGE; global $CFG, $PAGE;
if ($question->visibility != 'public') { if ($question->visibility == 'anonymous') {
$author = get_string('anonymous', 'pdfannotator'); $author = get_string('anonymous', 'pdfannotator');
} else { } else {
$author = "<a href=" . $CFG->wwwroot . "/user/view.php?id=$question->userid&course=$thiscourse>" . pdfannotator_get_username($question->userid) . "</a>"; $author = "<a href=" . $CFG->wwwroot . "/user/view.php?id=$question->userid&course=$thiscourse>" . pdfannotator_get_username($question->userid) . "</a>";
...@@ -1609,7 +1609,7 @@ function pdfannotator_answerstable_add_row($thiscourse, $table, $answer, $cmid, ...@@ -1609,7 +1609,7 @@ function pdfannotator_answerstable_add_row($thiscourse, $table, $answer, $cmid,
$answerid = 'answer_' . $answer->answerid; $answerid = 'answer_' . $answer->answerid;
$answerlink = "<a id=$answerid data-question=$answer->questionid href=$answer->link class='more'>$answer->answer</a>"; $answerlink = "<a id=$answerid data-question=$answer->questionid href=$answer->link class='more'>$answer->answer</a>";
if ($answer->visibility != 'public') { if ($answer->visibility == 'anonymous') {
$answeredby = get_string('anonymous', 'pdfannotator'); $answeredby = get_string('anonymous', 'pdfannotator');
} else { } else {
$answeredby = "<a href=" . $CFG->wwwroot . "/user/view.php?id=$answer->userid&course=$thiscourse>" . pdfannotator_get_username($answer->userid) . "</a>"; $answeredby = "<a href=" . $CFG->wwwroot . "/user/view.php?id=$answer->userid&course=$thiscourse>" . pdfannotator_get_username($answer->userid) . "</a>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment