View Issue Details

IDProjectCategoryView StatusLast Update
0011352mantisbtcustomizationpublic2010-02-22 14:34
Reporterwgodin Assigned Todhx  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Target Version1.2.0Fixed in Version1.2.0 
Summary0011352: Custom icon path ignored
Description

$g_icon_path configuration parameter seems to be ignored when displaying a bug's attachments.

Steps To Reproduce

"core/print_api.php" line 1620 of 1853 :

echo '<img src="' . config_get( 'path' ) . 'images/fileicons/' . $t_name . '" alt="' . $ext . ' file icon" width="16" height="16" border="0" />';

should probably look like :

echo '<img src="' . config_get( 'icon_path' ) . $t_name . '" alt="' . $ext . ' file icon" width="16" height="16" border="0" />';

TagsNo tags attached.

Activities

dhx

dhx

2010-01-10 21:41

reporter   ~0024118

Thanks for reporting. I've fixed it ready for the next 1.2.0 release. Just remember that the icon_path configuration option specifies the web accessible path - not the absolute path on the file system :)

wgodin

wgodin

2010-01-11 02:55

reporter   ~0024123

Thanks for the quick fix !

Related Changesets

MantisBT: master-1.2.x 7ea8aa44

2010-01-10 21:39

dhx


Details Diff
Fix 0011352: Use icon_path configuration option to find filetype icons

The $g_icon_path configuration option was not being used to find icons
used for display next to file attachments.
Affected Issues
0011352
mod - core/file_api.php Diff File
mod - core/print_api.php Diff File

MantisBT: master ff696f35

2010-01-10 21:39

dhx


Details Diff
Fix 0011352: Use icon_path configuration option to find filetype icons

The $g_icon_path configuration option was not being used to find icons
used for display next to file attachments.
Affected Issues
0011352
mod - core/file_api.php Diff File
mod - core/print_api.php Diff File