MDLSITE-545 MDL-18024 - reaplying incorrectly reverted fix
This commit is contained in:
+1
-1
@@ -1323,7 +1323,7 @@ function data_print_comments($data, $record, $page=0, $mform=false) {
|
||||
$editor = optional_param('addcomment', 0, PARAM_BOOL);
|
||||
if (!$mform and !$editor) {
|
||||
echo '<div class="newcomment" style="text-align:center">';
|
||||
echo '<a href="view.php?d='.$data->id.'&page='.$page.'&mode=single&addcomment=1">'.get_string('addcomment', 'data').'</a>';
|
||||
echo '<a href="view.php?d='.$data->id.'&rid='.$record->id.'&mode=single&addcomment=1">'.get_string('addcomment', 'data').'</a>';
|
||||
echo '</div>';
|
||||
} else {
|
||||
if (!$mform) {
|
||||
|
||||
Reference in New Issue
Block a user