|
|
|
@ -337,7 +337,10 @@ switch ($action) { |
|
|
|
|
if (is_numeric($new_lp_id)) { |
|
|
|
|
// TODO: Maybe create a first module directly to avoid bugging the user with useless queries |
|
|
|
|
$_SESSION['oLP'] = new learnpath(api_get_course_id(),$new_lp_id,api_get_user_id()); |
|
|
|
|
require 'lp_build.php'; |
|
|
|
|
//require 'lp_build.php'; |
|
|
|
|
$url = api_get_self().'?action=add_item&type=step&lp_id='.intval($new_lp_id); |
|
|
|
|
header('Location: '.$url); |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|