diff --git a/plugins/flexicontent_fields/file/tmpl/value_InlineBoxes.php b/plugins/flexicontent_fields/file/tmpl/value_InlineBoxes.php index 2de0b4c9502..d96410f69cb 100644 --- a/plugins/flexicontent_fields/file/tmpl/value_InlineBoxes.php +++ b/plugins/flexicontent_fields/file/tmpl/value_InlineBoxes.php @@ -49,6 +49,12 @@ $file_data->size = (int) $_size; } + // Force new window for URLs that have zero file size + if ($file_data->url && !$file_data->size) + { + $non_file_url = 1; + } + // *** // *** Check user access on the file @@ -303,7 +309,7 @@ // The download button in a mini form ... $actions_arr[] = '' - .'
' + .'' .$file_data_fields .'' .'
'."\n"; @@ -379,7 +385,7 @@ // The download link, if filename/title not shown, then display a 'download' prompt text $actions_arr[] = ($filename_shown && $link_filename ? $icon.' ' : '') - .'' + .'' .($filename_shown && $link_filename ? $name_str : $downloadstext) .''; }