LTI Avoid translate name from course name created by plugin - refs BT#13469

pull/2729/head
Angel Fernando Quiroz Campos 7 years ago
parent 4863b42ef1
commit a28fe6bfd5
  1. 4
      main/inc/lib/course_home.lib.php
  2. 1
      main/inc/lib/plugin.class.php

@ -1181,8 +1181,8 @@ class CourseHome
$toolName = api_underscore_to_camel_case($toolName);
if (isset($GLOBALS['Tool'.$toolName])) {
return get_lang('Tool'.$toolName);
if ('plugin' !== $tool['category'] && isset($GLOBALS['Tool' . $toolName])) {
return get_lang('Tool' . $toolName);
}
return $toolName;

@ -964,6 +964,7 @@ class Plugin
->findOneBy([
'name' => $name,
'cId' => $courseId,
'category' => 'plugin',
]);
if (!$tool) {

Loading…
Cancel
Save