Skip to content

Commit

Permalink
MDL-67818 check: Rename renderer to be less generic
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanheywood committed Apr 7, 2020
1 parent d71752d commit a282776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,7 @@ public function render_action_menu(action_menu $menu) {
* @param result $result
* @return string HTML fragment
*/
protected function render_result(core\check\result $result) {
protected function render_check_result(core\check\result $result) {
return $this->render_from_template($result->get_template_name(), $result->export_for_template($this));
}

Expand All @@ -1697,8 +1697,8 @@ protected function render_result(core\check\result $result) {
* @param result $result
* @return string HTML fragment
*/
public function result(core\check\result $result) {
return $this->render_result($result);
public function check_result(core\check\result $result) {
return $this->render_check_result($result);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion report/security/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
$link = new \moodle_url('/report/security/index.php', ['detail' => $ref]);

$row = [];
$row[] = $OUTPUT->result($result);
$row[] = $OUTPUT->check_result($result);
$row[] = $OUTPUT->action_link($link, $check->get_name());

$row[] = $result->get_summary();
Expand Down

0 comments on commit a282776

Please sign in to comment.