diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-11 12:44:23 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-11 12:44:23 +0300 |
commit | 0ae4125505a4ba36ac96065adccb95e3ab46c92a (patch) | |
tree | f4efb0390d0c1581b0b8ebc09e5944970e6294f6 /core/API | |
parent | 257ef458327f9dd4622be9a36d2e5bdf0c75f9af (diff) |
Fix PHP 5.3 error.
Diffstat (limited to 'core/API')
-rw-r--r-- | core/API/DataTablePostProcessor.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/API/DataTablePostProcessor.php b/core/API/DataTablePostProcessor.php index cec46fdc8e..f825a133d0 100644 --- a/core/API/DataTablePostProcessor.php +++ b/core/API/DataTablePostProcessor.php @@ -155,7 +155,7 @@ class DataTablePostProcessor $self = $this; $report = $this->report; $dataTable->filter(function (DataTable $table) use ($genericFilter, $report, $self) { - $processedMetrics = $this->getProcessedMetricsFor($table, $report); + $processedMetrics = $self->getProcessedMetricsFor($table, $report); if ($genericFilter->areProcessedMetricsNeededFor($processedMetrics)) { $self->computeProcessedMetrics($table); } @@ -332,7 +332,7 @@ class DataTablePostProcessor * @param Report $report * @return ProcessedMetric[] */ - private function getProcessedMetricsFor(DataTable $dataTable, $report) + public function getProcessedMetricsFor(DataTable $dataTable, $report) { $processedMetrics = $dataTable->getMetadata(DataTable::EXTRA_PROCESSED_METRICS_METADATA_NAME) ?: array(); |