Explorar el Código

Fix issue showing confirmation message in header

Yannick Warnier hace 7 años
padre
commit
31fd2c945b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      main/inc/introductionSection.inc.php

+ 2 - 2
main/inc/introductionSection.inc.php

@@ -97,7 +97,7 @@ if ($intro_editAllowed) {
                 }
                 Database::getManager()->persist($toolIntro);
                 Database::getManager()->flush();
-                echo Display::return_message(get_lang('IntroductionTextUpdated'), 'confirmation', false);
+                Display::addFlash(Display::return_message(get_lang('IntroductionTextUpdated'), 'confirmation', false));
             } else {
                 // got to the delete command
                 $intro_cmdDel = true;
@@ -117,7 +117,7 @@ if ($intro_editAllowed) {
                     id = $moduleId AND
                     session_id = $session_id";
         Database::query($sql);
-        echo Display::return_message(get_lang('IntroductionTextDeleted'), 'confirmation');
+        Display::addFlash(Display::return_message(get_lang('IntroductionTextDeleted'), 'confirmation'));
     }
 }