Skip to content

Commit

Permalink
Fix display messages see #2040
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jun 22, 2017
1 parent 9e9f0b3 commit 2f9bd0e
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions main/lp/blank.php
Expand Up @@ -17,8 +17,7 @@
</style>
";

$message = null;

$message = '';
if (isset($_GET['error'])) {
switch ($_GET['error']) {
case 'document_deleted':
Expand Down Expand Up @@ -50,15 +49,9 @@
break;
}
} elseif (isset($_GET['msg']) && $_GET['msg'] == 'exerciseFinished') {
Display::addFlash(
Display::return_message(get_lang('ExerciseFinished'))
);
}

if (!empty($message)) {
Display::addFlash($message);
$message = Display::return_message(get_lang('ExerciseFinished'));
}

Display::display_reduced_header();
Display::display_reduced_footer();
?>
$template = new Template();
$template->assign('content', $message);
$template->display_blank_template();

0 comments on commit 2f9bd0e

Please sign in to comment.