mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-46281 core_backup: Add class_exists check for backup_<mod>_activity_task
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
This commit is contained in:
parent
e1eb180806
commit
206541a12c
@ -159,7 +159,7 @@ class backup_xml_transformer extends xml_contenttransformer {
|
||||
// Add the module ones. Each module supporting moodle2 backups MUST have it
|
||||
$mods = core_component::get_plugin_list('mod');
|
||||
foreach ($mods as $mod => $moddir) {
|
||||
if (plugin_supports('mod', $mod, FEATURE_BACKUP_MOODLE2)) {
|
||||
if (plugin_supports('mod', $mod, FEATURE_BACKUP_MOODLE2) && class_exists('backup_' . $mod . '_activity_task')) {
|
||||
$encoders['backup_' . $mod . '_activity_task'] = 'encode_content_links';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user