diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-06-19 08:43:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-06-19 08:43:59 +0000 |
commit | f12d5c5347322e77748ee9f74d642aeb54cc20e9 (patch) | |
tree | fe21b5d2aa63b372e76cf62ed4638dc8a03c3e22 | |
parent | a7af266b6d608dd9176bbafd433b86a9e78721d2 (diff) | |
download | brdo-f12d5c5347322e77748ee9f74d642aeb54cc20e9.tar.gz brdo-f12d5c5347322e77748ee9f74d642aeb54cc20e9.tar.bz2 |
- Patch #21918 by budda/Robin: forum icons are broken when you change the forum icon path. TODO 1: the forum icons should probably be configurable on a per-site or per-theme basis. TODO 2: I spent 5 minutes looking for this setting.
-rw-r--r-- | modules/forum.module | 2 | ||||
-rw-r--r-- | modules/forum/forum.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/forum.module b/modules/forum.module index 6bb116511..407200040 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -958,7 +958,7 @@ function _forum_icon($new_posts, $num_posts = 0, $comment_mode = 0, $sticky = 0) } // default - $file = "misc/forum-$icon.png"; + $file = variable_get('forum_icon_path', 'misc') ."/forum-$icon.png"; $output = theme('image', $file); } diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 6bb116511..407200040 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -958,7 +958,7 @@ function _forum_icon($new_posts, $num_posts = 0, $comment_mode = 0, $sticky = 0) } // default - $file = "misc/forum-$icon.png"; + $file = variable_get('forum_icon_path', 'misc') ."/forum-$icon.png"; $output = theme('image', $file); } |