Merge branch 'MDL-36957-master' of git://github.com/FMCorz/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 2 Jun 2015 10:07:57 +0000 (11:07 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 2 Jun 2015 10:07:57 +0000 (11:07 +0100)
backup/util/helper/backup_general_helper.class.php

index 757c445..98b1f89 100644 (file)
@@ -230,8 +230,9 @@ abstract class backup_general_helper extends backup_helper {
                 case 'activity':
                     $info->activities[$setting['activity']]->settings[$setting['name']] = $setting['value'];
                     break;
-                default: // Shouldn't happen
-                    throw new backup_helper_exception('wrong_setting_level_moodle_backup_xml_file', $setting['level']);
+                default: // Shouldn't happen but tolerated for portability of customized backups.
+                    debugging("Unknown backup setting level: {$setting['level']}", DEBUG_DEVELOPER);
+                    break;
             }
         }