Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sorry for the lack of diff but I just found that the $imagepath was referencing relative to the node.
updated line 477 as follows:
$imagepath = base_path().drupal_get_path('module','filefield') .'/ico/'. $ext .'.png';
catting the basepath() to the top of the string.
Though getting this out of the monules directory might be a good idea, but that's another issue all togather.
Comments
Comment #1
jpetso CreditAttribution: jpetso commentedThanks, I committed this change to HEAD. The issue didn't normally occur, but it seems you used a theme where the HTML "base" property was set (like in Drupal 4.7 by default, but not in Drupal 5). However, your suggestion seems worthwhile, if only as guard against non-standard themes that use "base".
Comment #2
(not verified) CreditAttribution: commented