Skip to content

Commit

Permalink
MDL-37035 Pass user locale after course locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored and Sam Hemelryk committed Dec 17, 2012
1 parent e49fea7 commit 933cf2e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mod/lti/locallib.php
Expand Up @@ -228,11 +228,6 @@ function lti_build_request($instance, $typeconfig, $course) {

$role = lti_get_ims_role($USER, $instance->cmid, $instance->course);

$locale = $course->lang;
if ( strlen($locale) < 1 ) {
$locale = $CFG->lang;
}

$requestparams = array(
'resource_link_id' => $instance->id,
'resource_link_title' => $instance->name,
Expand All @@ -242,7 +237,7 @@ function lti_build_request($instance, $typeconfig, $course) {
'context_id' => $course->id,
'context_label' => $course->shortname,
'context_title' => $course->fullname,
'launch_presentation_locale' => $locale,
'launch_presentation_locale' => current_language()
);

$placementsecret = $instance->servicesalt;
Expand Down

0 comments on commit 933cf2e

Please sign in to comment.