Fixing page when using Custom pages see BT#7993

1.9.x
Julio Montoya 11 years ago
parent 2e211641e3
commit c0b184854a
  1. 21
      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();
}
}

Loading…
Cancel
Save