From: <vb...@us...> - 2003-02-25 14:43:24
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1:/tmp/cvs-serv3974 Modified Files: config_defaults_inc.php Log Message: Fix #838: Show attached images as images instead of links. M config_defaults_inc.php - New config option (preview_attachments_inline_max_size): Configure the maximum size for an attachment to be viewed inline. This feature can be disabled by setting this value to 0. Default is 0. M core/file_api.php - (file_list_attachments): Added support for attachment previewing. Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v retrieving revision 1.101 retrieving revision 1.102 diff -u -d -r1.101 -r1.102 --- config_defaults_inc.php 25 Feb 2003 08:50:42 -0000 1.101 +++ config_defaults_inc.php 25 Feb 2003 14:42:47 -0000 1.102 @@ -508,6 +508,11 @@ # Eg: doc-001-myprojdoc.zip $g_document_files_prefix = 'doc'; + # Specifies the maximum size below which an attachment is previewed in the bug + # view pages. To disable this feature, set max size to 0. + # This feature applies to: bmp, png, gif, jpg + $g_preview_attachments_inline_max_size = 0; + ############################ # Mantis HTML Settings ############################ |