display size of inline image attachments (screenshots)
Posted: 19 May 2006, 00:35
According to the new feature for Mantis 1.1 as outlined in Mantis bug http://bugs.mantisbt.org/view.php?id=6252
I tried the quick manual patch by editing the core/file_api.php in my Mantis 1.0.1 installation
...however, this results in the error:
Parse error: parse error, unexpected T_STRING in /home/httpd/mantis/core/file_api.php on line 193
Is there something else i need to do to get this to work?
I tried the quick manual patch by editing the core/file_api.php in my Mantis 1.0.1 installation
Code: Select all
Replace:
PRINT "
<img src=\"file_download.php?file_id=$v_id&type=bug\" />";
With:
PRINT "
$t_href_start<img style="border:0; max-width:500; max-height:250;" src=\"file_download.php?file_id=$v_id&type=bug\" />$t_href_end";Parse error: parse error, unexpected T_STRING in /home/httpd/mantis/core/file_api.php on line 193
Is there something else i need to do to get this to work?