From c0b184854a1187302c7f14777812bc242421db6e Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 24 Apr 2014 17:35:47 +0200 Subject: [PATCH] Fixing page when using Custom pages see BT#7993 --- main/auth/inscription.php | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/main/auth/inscription.php b/main/auth/inscription.php index e6c20c1782..f73f6033cf 100644 --- a/main/auth/inscription.php +++ b/main/auth/inscription.php @@ -575,26 +575,23 @@ if ($form->validate()) { Session::erase('course_redirect'); Session::erase('exercise_redirect'); - Display :: display_header($tool_name); - echo Display::page_header($tool_name); - - echo $content; - echo $text_after_registration; - if (CustomPages::enabled()) { CustomPages::display(CustomPages::REGISTRATION_FEEDBACK, array('info' => $text_after_registration)); + } else { + Display :: display_header($tool_name); + echo Display::page_header($tool_name); + + echo $content; + echo $text_after_registration; } } else { - - Display :: display_header($tool_name); - echo Display::page_header($tool_name); - - echo $content; - // Custom pages if (CustomPages::enabled()) { CustomPages::display(CustomPages::REGISTRATION, array('form' => $form)); } else { + Display :: display_header($tool_name); + echo Display::page_header($tool_name); + echo $content; $form->display(); } }