diff options
Diffstat (limited to 'plugins/ScheduledReports/API.php')
-rw-r--r-- | plugins/ScheduledReports/API.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ScheduledReports/API.php b/plugins/ScheduledReports/API.php index 66eb55a235..e8a105114b 100644 --- a/plugins/ScheduledReports/API.php +++ b/plugins/ScheduledReports/API.php @@ -236,10 +236,10 @@ class API extends \Piwik\Plugin\API foreach ($reports as &$report) { // decode report parameters - $report['parameters'] = Common::json_decode($report['parameters'], true); + $report['parameters'] = json_decode($report['parameters'], true); // decode report list - $report['reports'] = Common::json_decode($report['reports'], true); + $report['reports'] = json_decode($report['reports'], true); } // static cache @@ -294,7 +294,7 @@ class API extends \Piwik\Plugin\API } // override and/or validate report parameters - $report['parameters'] = Common::json_decode( + $report['parameters'] = json_decode( self::validateReportParameters($reportType, empty($parameters) ? $report['parameters'] : $parameters), true ); @@ -624,7 +624,7 @@ class API extends \Piwik\Plugin\API */ Piwik::postEvent(self::VALIDATE_PARAMETERS_EVENT, array(&$parameters, $reportType)); - return Common::json_encode($parameters); + return json_encode($parameters); } private static function validateAndTruncateDescription(&$description) @@ -653,7 +653,7 @@ class API extends \Piwik\Plugin\API } } - return Common::json_encode($requestedReports); + return json_encode($requestedReports); } private static function validateCommonReportAttributes($period, $hour, &$description, &$idSegment, $reportType, $reportFormat) |