Adding "hide_scorm_copy_link" configuration see BT#8459

1.9.x
Julio Montoya 11 years ago
parent 85fbdd23af
commit 9dbab31a31
  1. 2
      main/install/configuration.dist.php
  2. 6
      main/newscorm/lp_controller.php
  3. 6
      main/newscorm/lp_list.php

@ -197,3 +197,5 @@ $_configuration['system_stable'] = NEW_VERSION_STABLE;
//$_configuration['allow_lp_return_link'] = false;
// If true the export link is blocked.
//$_configuration['hide_scorm_export_link'] = false;
// If true the copy link is blocked.
//$_configuration['hide_scorm_copy_link'] = false;

@ -683,6 +683,12 @@ switch ($action) {
if (!$is_allowed_to_edit) {
api_not_allowed(true);
}
global $_configuration;
if (isset($_configuration['hide_scorm_copy_link']) && $_configuration['hide_scorm_copy_link']) {
api_not_allowed(true);
}
if ($debug > 0) error_log('New LP - export action triggered', 0);
if (!$lp_found) { error_log('New LP - No learnpath given for copy', 0); require 'lp_list.php'; }
else {

@ -402,7 +402,6 @@ if (!empty($flat_list)) {
$dsp_delete = Display::return_icon('delete_na.png', get_lang('LearnpathDeleteLearnpath'), '', ICON_SIZE_SMALL);
}
/* COLUMN ORDER */
// Only active while session mode is not active
@ -439,6 +438,11 @@ if (!empty($flat_list)) {
$dsp_disk = null;
}
if (isset($_configuration['hide_scorm_copy_link']) && $_configuration['hide_scorm_copy_link']) {
$copy = null;
}
echo $dsp_line.$start_time.$end_time.$dsp_progress.$dsp_desc.$dsp_export.$dsp_edit.$dsp_build.$dsp_edit_lp.$dsp_visible.$dsp_publish.$dsp_reinit.
$dsp_default_view.$dsp_debug.$dsp_disk.$copy.$lp_auto_lunch_icon.$export_icon.$dsp_delete.$dsp_order.$dsp_edit_close;

Loading…
Cancel
Save