From 2a457227e2c47cbbaa326e315cbfd8adcb470d36 Mon Sep 17 00:00:00 2001 From: Adrian Fish Date: Thu, 6 Dec 2012 14:35:10 +0000 Subject: [PATCH] MDL-37035 Pass user locale after course locale. --- mod/lti/locallib.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php index dccfcf4ae61..d2df831d7dd 100644 --- a/mod/lti/locallib.php +++ b/mod/lti/locallib.php @@ -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, @@ -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;