Skip to content

Commit

Permalink
MDL-69900 core_backup: Allow IMSCC v1.0 restore to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourget authored and Mihail Geshoski committed Oct 9, 2020
1 parent 5ecd01f commit 0544ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backup/cc/cc2moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ public static function log_action ($text, $critical_error = false) {
}
}

protected function critical_error ($text) {
protected static function critical_error ($text) {

$path_to_log = static::log_file();

Expand Down
2 changes: 1 addition & 1 deletion backup/cc/entities.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function load_xml_resource($path_to_file) {
cc2moodle::log_action('Load the XML resource file: '.$path_to_file);

if (!$resource->load($path_to_file)) {
cc2moodle::log_action('Cannot load the XML resource file: ' . $path_to_file, true);
cc2moodle::log_action('Cannot load the XML resource file: ' . $path_to_file, false);
}

return $resource;
Expand Down

0 comments on commit 0544ab9

Please sign in to comment.