Skip to content
Snippets Groups Projects
Commit f40d3905 authored by Bruno Massa's avatar Bruno Massa
Browse files

Bugs fixed:

* charts_chart() function now works fine
parent 0b2828b3
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
* to print the given data. * to print the given data.
* *
* @param $chart_provider * @param $chart_provider
* String. The chart provider. With this module you might install * String. The chart provider code. With this module you might install
* 'googlechart', 'openflashchart' and 'fusioncharts' * 'google_charts', 'openflashchart' and 'fusioncharts'
* @param &$data * @param &$data
* Array. The chart data, described on chart_api.txt * Array. The chart data, described on chart_api.txt
* @return * @return
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
* JavaScript external files) * JavaScript external files)
*/ */
function charts_chart($chart_provider, &$data) { function charts_chart($chart_provider, &$data) {
if (function_exists()) { $chart_provider = $chart_provider .'_chartsapi';
$chart_provider = $chart_provider .'_chartapi'; if (function_exists($chart_provider)) {
return $chart_provider($data); return $chart_provider($data);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment