Closed (fixed)
Project:
Click HeatMap
Version:
6.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2008 at 19:47 UTC
Updated:
21 Apr 2009 at 07:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
playfulwolf commentedsorry :) commented out that function.
Comment #2
boombatower commentedSo is there still a bug?
Comment #3
wulff commentedThis is still a bug. The attached patch fixes the problem (and removes some trailing whitespace).
AFAICT the problem is that in click_heatmap_remove_language_prefix() we're tryingto call the function language_initialize() which may not be available.
Looking through drupal_init_language() in bootstrap.inc, language.inc is only included if the site uses two or more languages.
The fix in this patch simply includes language.inc in click_heatmap_remove_language_prefix().
Comment #4
univate commentedThis is definitely a bug for sites only using one language.
I have done what I think is a cleaner fix to just check the number of languages, no need to do anything in the function click_heatmap_remove_language_prefix() if there is only the one language in use (and I've left the whitespace fixes from the previous patch)
Comment #5
boombatower commentedCommitted.
Thanks.