mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-81335 core_course: Fix section page for 'manageactivities' only
This commit is contained in:
parent
342319339f
commit
0ba23332db
@ -146,8 +146,10 @@ if (!empty($bulkbutton)) {
|
||||
if ($format->show_editor()) {
|
||||
$sectionclass = new \core_courseformat\output\local\content\section($format, $sectioninfo);
|
||||
$renderable = $sectionclass->export_for_template($renderer);
|
||||
$controlmenuhtml = $renderable->controlmenu->menu;
|
||||
$PAGE->add_header_action($controlmenuhtml);
|
||||
if (property_exists($renderable->controlmenu, 'menu')) {
|
||||
$controlmenuhtml = $renderable->controlmenu->menu;
|
||||
$PAGE->add_header_action($controlmenuhtml);
|
||||
}
|
||||
$sectionheading = $OUTPUT->container(
|
||||
$OUTPUT->render($format->inplace_editable_render_section_name($sectioninfo, false)),
|
||||
attributes: ['data-for' => 'section_title'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user