Show custom pages when pages existing - refs BT#13566

pull/2487/head
Angel Fernando Quiroz Campos 8 years ago
parent 65cc0f14df
commit bbb4948d43
  1. 4
      main/auth/inscription.php

@ -985,7 +985,7 @@ if ($form->validate()) {
Session::erase('session_redirect'); Session::erase('session_redirect');
Session::erase('only_one_course_session_redirect'); Session::erase('only_one_course_session_redirect');
if (CustomPages::enabled()) { if (CustomPages::enabled() && CustomPages::exists(CustomPages::REGISTRATION_FEEDBACK)) {
CustomPages::display( CustomPages::display(
CustomPages::REGISTRATION_FEEDBACK, CustomPages::REGISTRATION_FEEDBACK,
array('info' => $text_after_registration) array('info' => $text_after_registration)
@ -1000,7 +1000,7 @@ if ($form->validate()) {
} }
} else { } else {
// Custom pages // Custom pages
if (CustomPages::enabled()) { if (CustomPages::enabled() && CustomPages::exists(CustomPages::REGISTRATION)) {
CustomPages::display( CustomPages::display(
CustomPages::REGISTRATION, CustomPages::REGISTRATION,
array('form' => $form) array('form' => $form)

Loading…
Cancel
Save