diff --git a/includes/datastream.inc b/includes/datastream.inc index d1620d5f..bff346b3 100644 --- a/includes/datastream.inc +++ b/includes/datastream.inc @@ -35,7 +35,7 @@ function islandora_view_datastream(FedoraDatastream $datastream, $download = FAL header('Content-length: ' . $datastream->size); } if ($download) { - header("Content-Disposition: attachment; filename=\"" . $datastream->label); + header("Content-Disposition: attachment; filename=\"{$datastream->label}\""); } drupal_page_is_cacheable(FALSE); // Try not to load the file into PHP memory! diff --git a/includes/ingest.form.inc b/includes/ingest.form.inc index d57c3c15..524b27f1 100644 --- a/includes/ingest.form.inc +++ b/includes/ingest.form.inc @@ -240,6 +240,7 @@ function islandora_ingest_form_submit(array $form, array &$form_state) { foreach ($form_state['islandora']['objects'] as $object) { try { islandora_add_object($object); + $form_state['redirect'] = "islandora/object/{$object->id}"; } catch (Exception $e) { watchdog('islandora', $e->getMessage(), NULL, WATCHDOG_ERROR); // If post hooks throws it may already exist at this point but may be invalid, so don't say failed :P drupal_set_message(t('A problems occured while ingesting "@label" (ID: @pid), please notifiy the administrator.', array('@label' => $object->label, '@pid' => $object->id)), 'error');