Skip to content
Browse files

MDL-32614: Removing code which disassociated LTI instances from their…

… tool types upon restore.
  • Loading branch information...
1 parent 1494f20 commit f2b7928df7b043b5f895b76b2b988ff82d8906a5 @scriby scriby committed with stronk7 Jun 13, 2012
Showing with 0 additions and 18 deletions.
  1. +0 −18 mod/lti/backup/moodle2/restore_lti_stepslib.php
View
18 mod/lti/backup/moodle2/restore_lti_stepslib.php
@@ -74,29 +74,11 @@ protected function process_lti($data) {
$newitemid = lti_add_instance($data, null);
- // insert the basiclti record
- //$newitemid = $DB->insert_record('lti', $data);
// immediately after inserting "activity" record, call this
$this->apply_activity_instance($newitemid);
}
protected function after_execute() {
- global $DB;
-
- $basicltis = $DB->get_records('lti');
- foreach ($basicltis as $basiclti) {
- if (!$DB->get_record('lti_types_config',
- array('typeid' => $basiclti->typeid, 'name' => 'toolurl', 'value' => $basiclti->toolurl))) {
-
- $basiclti->typeid = 0;
- }
-
- $basiclti->placementsecret = uniqid('', true);
- $basiclti->timeplacementsecret = time();
-
- $DB->update_record('lti', $basiclti);
- }
-
// Add basiclti related files, no need to match by itemname (just internally handled context)
$this->add_related_files('mod_lti', 'intro', null);
}

0 comments on commit f2b7928

Please sign in to comment.
Something went wrong with that request. Please try again.