mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
Merge branch 'MDL-77955' of https://github.com/paulholden/moodle
This commit is contained in:
commit
ad37980aeb
@ -64,6 +64,13 @@ class activity_packager {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
public function __destruct() {
|
||||
$this->controller->destroy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare the backup file using appropriate setting overrides and return relevant information.
|
||||
*
|
||||
@ -131,8 +138,6 @@ class activity_packager {
|
||||
// Execute the backup and fetch the result.
|
||||
$this->controller->execute_plan();
|
||||
$result = $this->controller->get_results();
|
||||
// Controller no longer required.
|
||||
$this->controller->destroy();
|
||||
|
||||
if (!isset($result['backup_destination'])) {
|
||||
throw new \moodle_exception('Failed to package activity.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user