OK - I was researching why my board and a clients board would not show the attachment icons on the attachment listing display: and eventually found it.
This modification need only be applied by those who have altered their $stylevar[imgdir_attach] to a absolute path, this modification will need to be made.
In attachment_browser.php, Find:
Code:
function ICON_FILE_EXISTS($extension) {
global $stylevar;
static $attbro_icon_present;
if (empty($attbro_icon_present["$extension"]))
$attbro_icon_present["$extension"] = (file_exists("$stylevar[imgdir_attach]/$extension.gif"));
return $attbro_icon_present["$extension"];
}
Replace with:
Code:
function ICON_FILE_EXISTS($extension) {
global $stylevar;
static $attbro_icon_present;
if (empty($attbro_icon_present["$extension"]))
$attbro_icon_present["$extension"] = (file_exists($_SERVER['DOCUMENT_ROOT']."$stylevar[imgdir_attach]/$extension.gif"));
return $attbro_icon_present["$extension"];
}
HTH y'all...