Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellempire committed Jan 3, 2023
1 parent 4ca607a commit 3b9909d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions curatescape-echo/files/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<?php
$info = array();
($fileid=metadata('file', 'id')) ? $info[]='<span class="file-id">ID: '.$fileid.'</span>' : null;
($record=get_record_by_id('Item', $file->item_id)) ? $info[]=__('This file appears in').': '.link_to_item(strip_tags($title), array('class'=>'file-appears-in-item'), 'show', $record) : null;
($record=get_record_by_id('Item', $file->item_id)) ? $info[]=__('This file appears in').': '.link_to_item(strip_tags($record->display_title), array('class'=>'file-appears-in-item'), 'show', $record) : null;
echo count($info) ? '<span id="file-header-info" class="byline">'.implode(" | ", $info).'</span>' : null;

?>
Expand Down Expand Up @@ -44,7 +44,7 @@


<div class="separator"></div>
<div class="byline"><?php echo ($record=get_record_by_id('Item', $file->item_id)) ? __('"%s" appears in',strip_tags($fileTitle)).': '.link_to_item(strip_tags($title), array('class'=>'file-appears-in-item'), 'show', $record) : null;?></div>
<div class="byline"><?php echo ($record=get_record_by_id('Item', $file->item_id)) ? __('"%s" appears in',strip_tags($fileTitle)).': '.link_to_item(strip_tags($record->display_title), array('class'=>'file-appears-in-item'), 'show', $record) : null;?></div>

</div><!-- end primary -->

Expand Down

0 comments on commit 3b9909d

Please sign in to comment.