Skip to content

Commit

Permalink
Fix wrong redirection + add api_get_cidReq
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jan 22, 2016
1 parent 5cb9d44 commit 9cdea4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/newscorm/lp_controller.php
Expand Up @@ -695,7 +695,7 @@ function(reponse){
$is_success = true;
}

$url = api_get_self().'?action=add_item&type=step&lp_id='.intval($_SESSION['oLP']->lp_id);
$url = api_get_self().'?action=add_item&type=step&lp_id='.intval($_SESSION['oLP']->lp_id).'&'.api_get_cidreq();
header('Location: '.$url);
exit;
} else {
Expand All @@ -722,7 +722,7 @@ function(reponse){
$_POST['description']
);
$is_success = true;
$url = api_get_self().'?action=add_item&type=step&lp_id='.intval($_SESSION['oLP']->lp_id);
$url = api_get_self().'?action=add_item&type=step&lp_id='.intval($_SESSION['oLP']->lp_id).'&'.api_get_cidreq();
header('Location: '.$url);
}
if (isset($_GET['view']) && $_GET['view'] == 'build') {
Expand Down Expand Up @@ -1337,7 +1337,7 @@ function(reponse){
}
}

header('Location:' . api_get_path(WEB_PATH) . api_get_self() . '?' . http_build_query([
header('Location:' . api_get_self() . '?' . http_build_query([
'action' => 'add_item',
'type' => 'step',
'lp_id' => $_SESSION['oLP']->lp_id
Expand Down Expand Up @@ -1379,7 +1379,7 @@ function(reponse){
}
}

header('Location:' . api_get_path(WEB_PATH) . api_get_self() . '?' . http_build_query([
header('Location:' . api_get_self() . '?' . http_build_query([
'action' => 'add_item',
'type' => 'step',
'lp_id' => $_SESSION['oLP']->lp_id
Expand Down

0 comments on commit 9cdea4e

Please sign in to comment.