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
@ -90,10 +90,10 @@ class ReportsByDimension extends View
{
/**
* Triggered before rendering {@link ReportsByDimension} views.
*
*
* Plugins can use this event to configure {@link ReportsByDimension} instances by
* adding or removing reports to display.
*
*
* @param ReportsByDimension $this The view instance.
*/
Piwik::postEvent('View.ReportsByDimension.render', array($this));
@ -104,10 +104,10 @@ class ReportsByDimension extends View
// display it initially
$categories = $this->dimensionCategories;
if (!empty($categories)) {
$firstCategory = reset($categories);
$firstCategory = reset($categories);
$firstReportInfo = reset($firstCategory);
$oldGet = $_GET;
$oldGet = $_GET;
$oldPost = $_POST;
foreach ($firstReportInfo['params'] as $key => $value) {
@ -120,7 +120,7 @@ class ReportsByDimension extends View
$action = $firstReportInfo['params']['action'];
$this->firstReport = FrontController::getInstance()->fetchDispatch($module, $action);
$_GET = $oldGet;
$_GET = $oldGet;
$_POST = $oldPost;
}