Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 7f90e93

Browse files
committed
bug fix for restore process
1 parent 2a4be7b commit 7f90e93

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

backup/moodle2/restore_quickmail_stepslib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ protected function process_block($data) {
4949
if ($restore and isset($data->emaillogs['log'])) {
5050
global $DB;
5151

52-
$current = context_course::instance($this->get_courseid());
52+
$current_context = context_course::instance($this->get_courseid());
5353

5454
$params = array(
5555
'backupid' => $this->get_restoreid(),
5656
'itemname' => 'context',
57-
'newitemid' => $context->id
57+
'newitemid' => $current_context->id
5858
);
5959

6060
$id = $DB->get_record('backup_ids_temp', $params)->itemid;
6161

6262
foreach ($data->emaillogs['log'] as $log) {
63-
$this->process_log($log, $id, $context);
63+
$this->process_log($log, $id, $current_context);
6464
}
6565
}
6666

version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2222
*/
2323

24-
$plugin->version = 2017110700;
24+
$plugin->version = 2017122000;
2525
$plugin->requires = 2013051400;
26-
$plugin->release = "v1.7.4";
26+
$plugin->release = "v1.7.5";
2727
$plugin->maturity = MATURITY_STABLE;
2828
$plugin->component = 'block_quickmail';

0 commit comments

Comments
 (0)