Merge branch 'fix-single-button-rendering' of https://github.com/dominicchinkh/moodle

This commit is contained in:
Huong Nguyen
2023-11-29 10:33:06 +07:00
+1 -1
View File
@@ -50,7 +50,7 @@ class core_renderer extends \core_renderer {
$url->param('edit', 'on');
$editstring = get_string('turneditingon');
}
$button = new \single_button($url, $editstring, $method, ['class' => 'btn btn-primary']);
$button = new \single_button($url, $editstring, $method, \single_button::BUTTON_PRIMARY);
return $this->render_single_button($button);
}