Uses new require_sesskey function from MDL-20702.
return false;
}
- confirm_sesskey();
+ require_sesskey();
if (!$this->page->user_can_edit_blocks()) {
throw new moodle_exception('nopermissions', '', $this->page->url->out(), get_string('addblock'));
return false;
}
- confirm_sesskey();
+ require_sesskey();
$block = $this->page->blocks->find_instance($blockid);
return false;
}
- confirm_sesskey();
+ require_sesskey();
$block = $this->page->blocks->find_instance($blockid);
return false;
}
- confirm_sesskey();
+ require_sesskey();
require_once($CFG->dirroot . '/blocks/edit_form.php');
$block = $this->find_instance($blockid);
return false;
}
- confirm_sesskey();
+ require_sesskey();
$block = $this->find_instance($blockid);