Index: core/file_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/file_api.php,v retrieving revision 1.72 diff -u -r1.72 file_api.php --- core/file_api.php 11 Aug 2005 01:53:02 -0000 1.72 +++ core/file_api.php 11 Jan 2006 22:24:31 -0000 @@ -183,6 +183,54 @@ PRINT ' (' . lang_get( 'cached' ) . ')'; } + + if ( $t_can_download && + ( $v_filesize <= config_get( 'preview_attachments_inline_max_size' ) ) && + ( $v_filesize != 0 ) && + ( in_array( strtolower( file_get_extension( $t_file_display_name ) ), array( 'txt','patch' ), true ) ) ) { + $c_id=number_format($v_id); + $t_bug_file_table = config_get( 'mantis_bug_file_table' ); + + echo ""; + PRINT "[". lang_get( 'show_content' ) ."]
"; + } + + if ( $t_can_download && ( $v_filesize <= config_get( 'preview_attachments_inline_max_size' ) ) && ( $v_filesize != 0 ) && Index: lang/strings_english.txt =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_english.txt,v retrieving revision 1.268 diff -u -r1.268 strings_english.txt --- lang/strings_english.txt 17 Dec 2005 23:08:52 -0000 1.268 +++ lang/strings_english.txt 11 Jan 2006 22:12:45 -0000 @@ -602,6 +602,9 @@ $s_bugnote_updated_msg = 'Note has been successfully updated...'; $s_edited_on = 'edited on: '; +# file_api.php +$s_show_content ='Show content'; + # index.php $s_click_to_login = 'Click here to login';