LP: Allow to add a LP from a base course in the course session home.

BT#17744
pull/3512/head
Julio Montoya 5 years ago
parent 7fd802a200
commit f14ba11afb
  1. 6
      main/lp/lp_list.php

@ -586,7 +586,7 @@ foreach ($categories as $item) {
); );
/* PUBLISH COMMAND */ /* PUBLISH COMMAND */
if ($sessionId == $details['lp_session']) { //if ($sessionId == $details['lp_session']) {
if ($details['lp_published'] === 'i') { if ($details['lp_published'] === 'i') {
$dsp_publish = Display::url( $dsp_publish = Display::url(
Display::return_icon( Display::return_icon(
@ -604,12 +604,12 @@ foreach ($categories as $item) {
api_get_self().'?'.$cidReq."&lp_id=$id&action=toggle_publish&new_status=i" api_get_self().'?'.$cidReq."&lp_id=$id&action=toggle_publish&new_status=i"
); );
} }
} else { /*} else {
$dsp_publish = Display::return_icon( $dsp_publish = Display::return_icon(
'lp_publish_na.png', 'lp_publish_na.png',
get_lang('LearnpathDoNotPublish') get_lang('LearnpathDoNotPublish')
); );
} }*/
/* MULTIPLE ATTEMPTS OR SERIOUS GAME MODE /* MULTIPLE ATTEMPTS OR SERIOUS GAME MODE
SERIOUSGAME MODE is a special mode where : SERIOUSGAME MODE is a special mode where :

Loading…
Cancel
Save