Skip to content

Commit

Permalink
MDL-46281 core_backup: Add class_exists check for backup_<mod>_activi…
Browse files Browse the repository at this point in the history
…ty_task

Signed-off-by: Tony Butler <[email protected]>
  • Loading branch information
tonyjbutler committed Aug 14, 2014
1 parent e1eb180 commit 206541a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/moodle2/backup_xml_transformer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private function register_link_encoders() {
// 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';
}
}
Expand Down

0 comments on commit 206541a

Please sign in to comment.