update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -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,11 +11,9 @@ namespace Piwik\Plugins\Insights\Visualizations;
|
|||
|
||||
use Piwik\Common;
|
||||
use Piwik\DataTable;
|
||||
use Piwik\Period\Range;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugin\Visualization;
|
||||
use Piwik\Plugins\Insights\API;
|
||||
use Piwik\Plugins\Insights\Model;
|
||||
|
||||
/**
|
||||
* InsightsVisualization Visualization.
|
||||
|
|
@ -42,6 +40,10 @@ class Insight extends Visualization
|
|||
$report = $this->requestConfig->apiMethodToRequestDataTable;
|
||||
$report = str_replace('.', '_', $report);
|
||||
|
||||
if (!empty($this->requestConfig->request_parameters_to_modify['reportUniqueId'])) {
|
||||
$report = $this->requestConfig->request_parameters_to_modify['reportUniqueId'];
|
||||
}
|
||||
|
||||
$this->requestConfig->apiMethodToRequestDataTable = 'Insights.getInsights';
|
||||
|
||||
$this->requestConfig->request_parameters_to_modify = array(
|
||||
|
|
@ -95,6 +97,7 @@ class Insight extends Visualization
|
|||
$this->config->show_pagination_control = false;
|
||||
$this->config->show_offset_information = false;
|
||||
$this->config->show_search = false;
|
||||
$this->config->show_export_as_rss_feed = false;
|
||||
|
||||
if (!self::canDisplayViewDataTable($this)) {
|
||||
$this->assignTemplateVar('cannotDisplayReport', true);
|
||||
|
|
@ -116,6 +119,11 @@ class Insight extends Visualization
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($view->requestConfig->apiMethodToRequestDataTable
|
||||
&& 0 === strpos($view->requestConfig->apiMethodToRequestDataTable, 'DBStats')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return parent::canDisplayViewDataTable($view);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue