Browse Source

Remove redundant theme check.

pull/681/head
Rosie Le Faive 9 years ago
parent
commit
01eb56a311
  1. 6
      theme/theme.inc

6
theme/theme.inc

@ -64,18 +64,12 @@ function template_preprocess_islandora_default_edit(array &$variables) {
elseif (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) {
$row[] = array();
}
if (islandora_datastream_access(ISLANDORA_REPLACE_DATASTREAM_CONTENT, $ds)) {
// Add new datastream content as the lastest version.
$row[] = array(
'class' => 'datastream-replace',
'data' => theme('islandora_datastream_replace_link', array(
'datastream' => $ds,
)),
);
}
else {
$row[] = array();
}
$row[] = array(
'class' => 'datastream-download',
'data' => theme('islandora_datastream_download_link', array(

Loading…
Cancel
Save