Closed (fixed)
Project:
Tagadelic
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Feb 2007 at 08:34 UTC
Updated:
13 Jan 2008 at 14:02 UTC
Jump to comment: Most recent file
=== modified file 'tagadelic.module'
--- tagadelic.module 2007-02-23 08:24:13 +0000
+++ tagadelic.module 2007-02-23 08:24:47 +0000
@@ -316,7 +316,7 @@
if ($op == 'view') {
if ($voc = taxonomy_get_vocabulary($delta)) {
$blocks['subject'] = variable_get('tagadelic_block_title_'. $delta, t('tags in @voc', array('@voc' => $voc->name)));
- $tags = tagadelic_get_weighted_tags(array($voc->vid),6, variable_get('tagadelic_block_tags_'. $delta, 12));
+ $tags = tagadelic_get_weighted_tags(array($voc->vid), variable_get('tagadelic_levels', 6), variable_get('tagadelic_block_tags_'. $delta, 12));
$tags = tagadelic_sort_tags($tags);
$blocks['content'] = theme('tagadelic_weighted', $tags);//return a chunk of 12 tags
}
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | tagadelic.module.patch | 820 bytes | extrabigmehdi |
Comments
Comment #1
Bèr Kessels commentedplease attach a real patch.
Comment #2
ardee-1 commentedFor what it's worth, I made the indicated change in 4.7.x, and it seems to work.
Comment #3
extrabigmehdi commentedhi Bèr Kessels,
the issue still exists with drupal 5.1, and the patch suggested by ardee works fine.
I don't know what you call a "real patch" and anyway this looks like a pain to use the diff tool under windows (well, when I read this thread)
What I've done, is reading the patch files, and applied modifications manually.
This is pretty simple:
Inside function tagadelic_block,
I replace the hardcoded 6, by variable_get('tagadelic_levels', 6)
and then everything work fine.
Comment #4
Bèr Kessels commentedplease look at http://drupal.org/diffandpatch
Comment #5
extrabigmehdi commentedI've just generated a patch file using WinMerge .
I hope this one is of your taste (file in attachement).
Comment #6
Bèr Kessels commentedFixed in 5.x HEAD.
Comment #7
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.