Skip to content

Commit

Permalink
Fixing google chart viz to use getScheme() for Google URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Nov 22, 2013
1 parent a5869fb commit 5a0cbaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/fabrik_visualization/chart/models/chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FabrikModelChart extends FabrikFEModelVisualization
* @var string
*/

var $_url = 'http://chart.apis.google.com/chart';
var $_url = '://chart.apis.google.com/chart';

/**
* Get min and max values form totals
Expand Down Expand Up @@ -228,7 +228,8 @@ function getChart()
}
list($colours, $fills) = $this->getColours();

$return = '<img src="' . $this->_url . '?';
$uri = JURI::getInstance();
$return = '<img src="' . $uri->getScheme() . $this->_url . '?';
$qs = 'chs=' . $w . 'x' . $h;
$qs .= '&amp;chd=t:' . $chd;
$qs .= '&amp;cht=' . $graph;
Expand Down

0 comments on commit 5a0cbaf

Please sign in to comment.