mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-37035 Pass user locale after course locale.
This commit is contained in:
parent
59fc0958d6
commit
2ad0b3a12a
1 changed files with 1 additions and 6 deletions
|
@ -228,11 +228,6 @@ function lti_build_request($instance, $typeconfig, $course) {
|
||||||
|
|
||||||
$role = lti_get_ims_role($USER, $instance->cmid, $instance->course);
|
$role = lti_get_ims_role($USER, $instance->cmid, $instance->course);
|
||||||
|
|
||||||
$locale = $course->lang;
|
|
||||||
if ( strlen($locale) < 1 ) {
|
|
||||||
$locale = $CFG->lang;
|
|
||||||
}
|
|
||||||
|
|
||||||
$requestparams = array(
|
$requestparams = array(
|
||||||
'resource_link_id' => $instance->id,
|
'resource_link_id' => $instance->id,
|
||||||
'resource_link_title' => $instance->name,
|
'resource_link_title' => $instance->name,
|
||||||
|
@ -242,7 +237,7 @@ function lti_build_request($instance, $typeconfig, $course) {
|
||||||
'context_id' => $course->id,
|
'context_id' => $course->id,
|
||||||
'context_label' => $course->shortname,
|
'context_label' => $course->shortname,
|
||||||
'context_title' => $course->fullname,
|
'context_title' => $course->fullname,
|
||||||
'launch_presentation_locale' => $locale,
|
'launch_presentation_locale' => current_language()
|
||||||
);
|
);
|
||||||
|
|
||||||
$placementsecret = $instance->servicesalt;
|
$placementsecret = $instance->servicesalt;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue