mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-84140' of https://github.com/paulholden/moodle
This commit is contained in:
commit
3e1024dd06
@ -4669,9 +4669,17 @@ class core_course_external extends external_api {
|
||||
$coursecontext = context_course::instance($courseid);
|
||||
self::validate_context($coursecontext);
|
||||
|
||||
$activeplugin = get_config('core', 'activitychooseractivefooter');
|
||||
// The active plugin must be set, and be present on the site.
|
||||
$activeplugin = clean_param(
|
||||
get_config('core', 'activitychooseractivefooter'),
|
||||
PARAM_COMPONENT,
|
||||
);
|
||||
|
||||
if ($activeplugin !== COURSE_CHOOSER_FOOTER_NONE) {
|
||||
if (
|
||||
$activeplugin !== COURSE_CHOOSER_FOOTER_NONE &&
|
||||
!empty($activeplugin) &&
|
||||
core_component::get_component_directory($activeplugin) !== null
|
||||
) {
|
||||
$footerdata = component_callback($activeplugin, 'custom_chooser_footer', [$courseid, $sectionid]);
|
||||
return [
|
||||
'footer' => true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user