MDL-75337 core: Single button - core changes

* Change all core calls toward single_button to use single_button::BUTTON_PRIMARY
    when needed
This commit is contained in:
Laurent David
2023-01-24 06:01:35 +01:00
parent 377c962f11
commit fc72a1d7b1
39 changed files with 95 additions and 59 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class mod_folder_renderer extends plugin_renderer_base {
$canmanagecourseactivities = has_capability('moodle/course:manageactivities', $context);
if ($canmanagefolderfiles && ($folder->display != FOLDER_DISPLAY_INLINE || !$canmanagecourseactivities)) {
$editbutton = new single_button(new moodle_url('/mod/folder/edit.php', ['id' => $cm->id]),
get_string('edit'), 'post', true);
get_string('edit'), 'post', single_button::BUTTON_PRIMARY);
$editbutton->class = 'navitem';
$buttons .= $this->render($editbutton);
}