Closed (fixed)
Project:
Drupal core
Component:
forum.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
3 May 2005 at 15:07 UTC
Updated:
3 Jul 2005 at 08:56 UTC
Jump to comment: Most recent file
The forum icon support is broken in 4.6 - currently if an icon path is provided in the user interface, it gets ignored anyway!
Changes required in the function _forum_icon() of forum.module. The main problem is the hardcoded path to the icons is currently:
$file = "misc/forum-$icon.png";
$output = theme('image', $file);
This is easily fixed by moving the 'misc' path to the variable_get() at the start of the function.
Then changing the way the $file variable is built up, as below.
$base_path = variable_get('forum_icon_path', 'misc');
...
$file = "$base_path/forum-$icon.png";
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Forum.Image.Display.Folder.Issue.patch | 514 bytes | robin monks |
Comments
Comment #1
buddaI'm having to modify Drupal core installs to fix this bug in forum.module.
Has it been addressed at all in CVS yet?
Sorry I've not submitted a patch to apply the fix.
The bug still exists in 4.6.1 release.
Comment #2
killes@www.drop.org commentedA missing icon is certainly not critical.
Comment #3
robin monks commentedHere it is in patch form. I'll take responsibility of any required updates.
Robin
Comment #4
slidenby@twit.slidenby.com commentedI know I'm going to come off like an idiot... and I'm sorry... but can someone please quickly explain to me how to install this patch? I looked at the forum.module code and I see where the corosponding code is for the image locations... I'm just not exactly what I'm supposed to do from there, copy the code in the patch file?
Thanks, sorry again for being a noob at this
Comment #5
ezheidtmann commentedslidenby: http://drupal.org/diffandpatch
Comment #6
slidenby@twit.slidenby.com commentedI think this stuff is way over my head :) but ill try it, thanks so much for the link
Comment #7
robin monks commented'tis a normal bug.
Comment #8
dries commentedCommitted to HEAD and DRUPAL-4-6.
Comment #9
(not verified) commented