update Piwik to version 2.16 (fixes #91)

This commit is contained in:
oliver 2016-04-10 18:55:57 +02:00
commit d885a4baa9
5833 changed files with 418860 additions and 226988 deletions

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -11,7 +11,7 @@ use Piwik\Piwik;
use Piwik\WidgetsList;
/**
* This API is the <a href='http://piwik.org/docs/analytics-api/reference/' target='_blank'>Dashboard API</a>: it gives information about dashboards.
* This API is the <a href='http://piwik.org/docs/analytics-api/reference/' rel='noreferrer' target='_blank'>Dashboard API</a>: it gives information about dashboards.
*
* @method static \Piwik\Plugins\Dashboard\API getInstance()
*/
@ -19,9 +19,9 @@ class API extends \Piwik\Plugin\API
{
private $dashboard = null;
protected function __construct()
public function __construct(Dashboard $dashboard)
{
$this->dashboard = new Dashboard();
$this->dashboard = $dashboard;
}
/**
@ -130,7 +130,7 @@ class API extends \Piwik\Plugin\API
private function widgetExists($widget)
{
if (empty($widget->parameters)) {
if (empty($widget->parameters->module)) {
return false;
}