mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-72578-master' of git://github.com/ferranrecio/moodle
This commit is contained in:
commit
edb655e35c
28 changed files with 1286 additions and 189 deletions
|
@ -3822,7 +3822,7 @@ function course_get_tagged_courses($tag, $exclusivemode = false, $fromctx = 0, $
|
|||
*/
|
||||
function core_course_inplace_editable($itemtype, $itemid, $newvalue) {
|
||||
if ($itemtype === 'activityname') {
|
||||
return \core_course\output\course_module_name::update($itemid, $newvalue);
|
||||
return \core_courseformat\output\local\content\cm\cmname::update($itemid, $newvalue);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3874,8 +3874,9 @@ function core_course_drawer(): string {
|
|||
$ismod = strpos($PAGE->pagetype, 'mod-') === 0;
|
||||
if ($ismod || $PAGE->pagetype == 'course-view-' . $format->get_format()) {
|
||||
$renderer = $format->get_renderer($PAGE);
|
||||
$placeholder = $renderer->course_index_drawer($format);
|
||||
return $placeholder;
|
||||
if (method_exists($renderer, 'course_index_drawer')) {
|
||||
return $renderer->course_index_drawer($format);
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue