Browse Source

Get rid of useless instantiations

pull/95/head
Adam Vessey 13 years ago
parent
commit
5cb3023204
  1. 6
      fedora_repository.module

6
fedora_repository.module

@ -149,8 +149,7 @@ function fedora_repository_ingest_form_submit(array $form, array &$form_state) {
if ($form_state['storage']['xml']) {
if (module_exists('islandora_content_model_forms')) {
module_load_include('inc', 'islandora_content_model_forms', 'IngestObjectMetadataForm');
$xml_form = new IngestObjectMetadataForm();
$xml_form->submit($form, $form_state);
IngestObjectMetadataForm::submit($form, $form_state);
}
}
elseif ($form_state['clicked_button']['#id'] == 'edit-submit') {
@ -812,8 +811,7 @@ function fedora_repository_edit_qdc_form_validate($form, &$form_state) {
function fedora_repository_edit_qdc_form_submit($form, &$form_state) {
if ($form_state['storage']['xml']) {
module_load_include('inc', 'islandora_content_model_forms', 'EditObjectMetadataForm');
$xml_form = new EditObjectMetadataForm($form_state);
$xml_form->submit($form, $form_state);
EditObjectMetadataForm::submit($form, $form_state);
}
else {
module_load_include('inc', 'fedora_repository', 'ConnectionHelper');

Loading…
Cancel
Save