Browse Source

Update theme.inc

Updates based on @jordandukart code review.
pull/671/head
Jonathan Green 8 years ago committed by Jonathan Green
parent
commit
7a0d653172
No known key found for this signature in database
GPG Key ID: E96938FA4DF26243
  1. 22
      theme/theme.inc

22
theme/theme.inc

@ -53,18 +53,16 @@ function islandora_preprocess_islandora_default_edit(array &$variables) {
'class' => 'datastream-size',
'data' => islandora_datastream_get_human_readable_size($ds),
);
if (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) {
if (islandora_datastream_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $ds)) {
$row[] = array(
'class' => 'datastream-versions',
'data' => theme('islandora_datastream_version_link', array(
'datastream' => $ds,
)),
);
}
else {
$row[] = array();
}
if (islandora_datastream_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $ds)) {
$row[] = array(
'class' => 'datastream-versions',
'data' => theme('islandora_datastream_version_link', array(
'datastream' => $ds,
)),
);
}
else if (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) {
$row[] = array();
}
if (islandora_datastream_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $ds)) {
// Add new datastream content as the lastest version.

Loading…
Cancel
Save