X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplwizard.php;h=b5affd1936cecc487df3be5bcda1f7b32258ec07;hb=be6ab042d1dc34d9e42557281b48dd8da400231b;hp=23a47e11a5b58e3ac5cbc5051bdfec08ebcaac15;hpb=fd38b30e72448ad4ae848e4c7f87343d938bd781;p=platal.git diff --git a/classes/plwizard.php b/classes/plwizard.php index 23a47e1..b5affd1 100644 --- a/classes/plwizard.php +++ b/classes/plwizard.php @@ -148,8 +148,9 @@ class PlWizard $oldpage = $curpage; // Process the previous page - if (!is_null($curpage)) { - $page = $this->getPage($curpage); + if (Post::has('valid_page')) { + $page = $this->getPage(Post::i('valid_page')); + $curpage = Post::i('valid_page'); $next = $page->process(); $last = $curpage; switch ($next) { @@ -201,6 +202,7 @@ class PlWizard $smarty->assign('wiz_baseurl', $baseurl); $smarty->assign('tab_width', (int)(99 / count($this->pages))); $smarty->assign('wiz_page', $page->template()); + $smarty->assign('xorg_no_errors', true); $page->prepare($smarty); } }