diff options
Diffstat (limited to 'plugins/SEO/Widgets/GetRank.php')
-rw-r--r-- | plugins/SEO/Widgets/GetRank.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/SEO/Widgets/GetRank.php b/plugins/SEO/Widgets/GetRank.php index b8e1b271d9..0c009a4be4 100644 --- a/plugins/SEO/Widgets/GetRank.php +++ b/plugins/SEO/Widgets/GetRank.php @@ -50,13 +50,14 @@ class GetRank extends \Piwik\Widget\Widget } $dataTable = API::getInstance()->getRank($url); - + /** @var \Piwik\DataTable\Renderer\Json $renderer */ $renderer = Renderer::factory('json'); + $renderer->setTable($dataTable); return $this->renderTemplate('getRank', array( 'urlToRank' => Url::getHostFromUrl($url), - 'ranks' => json_decode($renderer->render($dataTable), true) + 'ranks' => json_decode($renderer->render(), true) )); } |