use Display::cleanFlashMessages() instead Session::erase('flash_messages') in moodle import

pull/2487/head
José Loguercio 9 years ago
parent a345d5bf8d
commit bd703fa544
  1. 4
      main/coursecopy/import_moodle.php

@ -43,7 +43,9 @@ if ($form->validate()) {
$file = $_FILES['moodle_file'];
$moodleImport = new MoodleImport();
$responseImport = $moodleImport->readMoodleFile($file);
Session::erase('flash_messages');
Display::cleanFlashMessages();
if ($responseImport) {
Display::addFlash(Display::return_message(get_lang('MoodleFileImportedSuccessfully'), 'success'));
} else {

Loading…
Cancel
Save