Fixed issue restoring a customcert
This commit is contained in:
parent
7cf71730fc
commit
d9e8c24a6b
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ class restore_customcert_activity_task extends restore_activity_task {
|
|||
* was available at the time.
|
||||
*/
|
||||
public function after_restore() {
|
||||
global $DB;
|
||||
global $CFG, $DB;
|
||||
|
||||
require_once($CFG->dirroot . '/mod/customcert/locallib.php');
|
||||
|
||||
// Get the customcert elements.
|
||||
$sql = "SELECT e.*
|
||||
|
|
Loading…
Reference in a new issue