diff --git a/backup/cc/cc2moodle.php b/backup/cc/cc2moodle.php index 88895a99319..245065afe70 100644 --- a/backup/cc/cc2moodle.php +++ b/backup/cc/cc2moodle.php @@ -794,7 +794,7 @@ class cc2moodle { } } - protected function critical_error ($text) { + protected static function critical_error ($text) { $path_to_log = static::log_file(); diff --git a/backup/cc/entities.class.php b/backup/cc/entities.class.php index 4a8ef064e9f..712b84f7871 100644 --- a/backup/cc/entities.class.php +++ b/backup/cc/entities.class.php @@ -76,7 +76,7 @@ class entities { 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;