Adding glossary possible options see BT#9420

1.9.x
Julio Montoya 11 years ago
parent 71519811fe
commit 11b0e96555
  1. 4
      main/exercice/exercise_submit.php
  2. 3
      main/newscorm/lp_view.php

@ -49,8 +49,8 @@ if ($debug) {
api_protect_course_script(true);
$is_allowedToEdit = api_is_allowed_to_edit(null,true);
if (api_get_setting('show_glossary_in_extra_tools') == 'true') {
$glossaryExtraTools = api_get_setting('show_glossary_in_extra_tools');
if (in_array($glossaryExtraTools, array('true', 'exercise', 'exercise_and_lp'))) {
$htmlHeadXtra[] = api_get_js('glossary.js');
$htmlHeadXtra[] = api_get_js('jquery.highlight.js');
}

@ -484,7 +484,8 @@ if ($is_allowed_to_edit) {
// Loads the glossary library.
<?php
if (api_get_setting('show_glossary_in_extra_tools') == 'true') {
$glossaryExtraTools = api_get_setting('show_glossary_in_extra_tools');
if (in_array($glossaryExtraTools, array('true', 'lp', 'exercise_and_lp'))) {
if (api_get_setting('show_glossary_in_documents') == 'ismanual') {
?>
$.frameReady(function(){

Loading…
Cancel
Save