mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-76258 mod_lti: Codign style fixes
This commit is contained in:
parent
6e9e2be8f4
commit
62238568a2
@ -49,6 +49,7 @@
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
use mod_lti\local\ltiopenid\registration_helper;
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
unset($data->toolproxyid); // Course tools can not use LTI2.
|
||||
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);
|
||||
$this->newltitype = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user