MDL-80035 theme_boost: Fix fourth argument of single_button constructor

This commit is contained in:
Dominic Chin 2023-11-08 12:09:36 +11:00
parent e4d1369475
commit 5853645aa5

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);
}