mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-76258 mod_lti: Codign style fixes
This commit is contained in:
parent
392a0030a3
commit
360e16fd8b
1 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,7 @@
|
||||||
defined('MOODLE_INTERNAL') || die;
|
defined('MOODLE_INTERNAL') || die;
|
||||||
|
|
||||||
use mod_lti\local\ltiopenid\registration_helper;
|
use mod_lti\local\ltiopenid\registration_helper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure step to restore one lti activity
|
* Structure step to restore one lti activity
|
||||||
*/
|
*/
|
||||||
|
@ -136,7 +137,8 @@ class restore_lti_activity_structure_step extends restore_activity_structure_ste
|
||||||
if (!$ltitypeid && $data->course == $courseid) {
|
if (!$ltitypeid && $data->course == $courseid) {
|
||||||
unset($data->toolproxyid); // Course tools can not use LTI2.
|
unset($data->toolproxyid); // Course tools can not use LTI2.
|
||||||
if (!empty($data->clientid)) {
|
if (!empty($data->clientid)) {
|
||||||
$data->clientid = registration_helper::get()->new_clientid(); // Need to rebuild clientid to ensure uniqueness.
|
// Need to rebuild clientid to ensure uniqueness.
|
||||||
|
$data->clientid = registration_helper::get()->new_clientid();
|
||||||
}
|
}
|
||||||
$ltitypeid = $DB->insert_record('lti_types', $data);
|
$ltitypeid = $DB->insert_record('lti_types', $data);
|
||||||
$this->newltitype = true;
|
$this->newltitype = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue