Fix affiliate google chart

This commit is contained in:
Deon George 2013-01-10 17:18:42 +11:00
parent f007847f70
commit 788dbe5ef9

View File

@ -164,9 +164,9 @@ class Controller_Affiliate_Service extends Controller_TemplateDefault_Affiliate
->title(sprintf('ADSL traffic as at %s',date('Y-m-d',strtotime('yesterday')))); ->title(sprintf('ADSL traffic as at %s',date('Y-m-d',strtotime('yesterday'))));
foreach ($data['data'] as $key => $values) foreach ($data['data'] as $key => $values)
$google->data(array('yl'=>$key),array($key=>$values)); $google->sdata(array('yl'=>$key),array($key=>$values));
$google->data(array('yr'=>'services'),array('services'=>$data['svs'])); $google->sdata(array('yr'=>'services'),array('services'=>$data['svs']));
Block::add(array('body'=>(string)$google)); Block::add(array('body'=>(string)$google));
@ -205,9 +205,9 @@ class Controller_Affiliate_Service extends Controller_TemplateDefault_Affiliate
->title(sprintf('HSPA traffic as at %s',date('Y-m-d',strtotime('yesterday')))); ->title(sprintf('HSPA traffic as at %s',date('Y-m-d',strtotime('yesterday'))));
foreach ($data['data'] as $key => $values) foreach ($data['data'] as $key => $values)
$google->data(array('yl'=>$key),array($key=>$values)); $google->sdata(array('yl'=>$key),array($key=>$values));
$google->data(array('yr'=>'services'),array('services'=>$data['svs'])); $google->sdata(array('yr'=>'services'),array('services'=>$data['svs']));
Block::add(array('body'=>(string)$google)); Block::add(array('body'=>(string)$google));