Minor adding message see #5515

skala
Yoselyn Castillo 12 years ago
parent 1885afe0e0
commit 18733592a1
  1. 7
      main/coursecopy/import_backup.php

@ -95,8 +95,13 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form' ) || (i
Display::display_error_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin')); Display::display_error_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'));
echo '<a class="btn" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; echo '<a class="btn" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>';
} else { } else {
Display::display_error_message(api_ucfirst(get_lang('UploadError'))); if ($filename == '') {
Display::display_error_message(get_lang('SelectBackupFile'));
echo '<a class="btn" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>'; echo '<a class="btn" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>';
} else {
Display::display_error_message(get_lang('UploadError'));
echo '<a class="btn" href="import_backup.php?'.api_get_cidreq().'">'.get_lang('TryAgain').'</a>';
}
} }
} }
CourseArchiver::clean_backup_dir(); CourseArchiver::clean_backup_dir();

Loading…
Cancel
Save