Browse Source

Use the relevant constant.

pull/135/head
Adam Vessey 12 years ago
parent
commit
63d505a1f1
  1. 3
      fedora_repository.module

3
fedora_repository.module

@ -1170,8 +1170,9 @@ function fedora_object_as_attachment($pid, $dsId, $label=NULL, $version=NULL) {
drupal_set_message(t("no pid or dsid given to create an object with!"));
return ' ';
}
//Disable the page cache, so entire datastreams do not get thrown into the page cache.
$GLOBALS['conf']['cache'] = FALSE;
$GLOBALS['conf']['cache'] = CACHE_DISABLED;
$objectHelper = new ObjectHelper();
$objectHelper->makeObject($pid, $dsId, TRUE, $label, FALSE, $version);

Loading…
Cancel
Save