* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
/** Process information resulting of the application of the page.
* This function must return a clue indicating the next page to show.
/** Process information resulting of the application of the page.
* This function must return a clue indicating the next page to show.
* id (PlWizard::FIRST_PAGE, PlWizard::NEXT_PAGE, PlWizard::CURRENT_PAGE
* PlWizard::PREVIOUS_PAGE, PlWizard::LAST_PAGE).
*/
* id (PlWizard::FIRST_PAGE, PlWizard::NEXT_PAGE, PlWizard::CURRENT_PAGE
* PlWizard::PREVIOUS_PAGE, PlWizard::LAST_PAGE).
*/
- public function apply(PlPage &$smarty, $baseurl, $pgid = null, $mode = 'normal')
+ public function apply(PlPage $smarty, $baseurl, $pgid = null, $mode = 'normal')
- if ($this->stateless && (isset($this->lookup[$pgid]) || isset($this->pages[$pgid]))) {
- $curpage = is_numeric($pgid) ? $pgid : $this->lookup[$pgid];
+ if ($this->stateless && (isset($this->lookup[$pgid]) || isset($this->pages[$pgid]))) {
+ $curpage = is_numeric($pgid) ? $pgid : $this->lookup[$pgid];
- pl_redirect($baseurl . '/' . $this->inv_lookup[$curpage]);
+ if (isset($success) && $success) {
+ pl_redirect($baseurl . '/' . $this->inv_lookup[$curpage] . '/null/' . $success);
+ } else {
+ pl_redirect($baseurl . '/' . $this->inv_lookup[$curpage]);
+ }
$smarty->changeTpl($this->layout, NO_SKIN);
$smarty->assign('wiz_run_ajax', true);
} else {
$smarty->changeTpl($this->layout, NO_SKIN);
$smarty->assign('wiz_run_ajax', true);
} else {
$smarty->assign('wiz_page', $page->template());
$smarty->assign('pl_no_errors', true);
$page->prepare($smarty, isset($this->inv_lookup[$curpage]) ? $this->inv_lookup[$curpage] : $curpage);
$smarty->assign('wiz_page', $page->template());
$smarty->assign('pl_no_errors', true);
$page->prepare($smarty, isset($this->inv_lookup[$curpage]) ? $this->inv_lookup[$curpage] : $curpage);