diff options
Diffstat (limited to 'plugins/ImageGraph/API.php')
-rw-r--r-- | plugins/ImageGraph/API.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/ImageGraph/API.php b/plugins/ImageGraph/API.php index 916589e683..ddc31e56b3 100644 --- a/plugins/ImageGraph/API.php +++ b/plugins/ImageGraph/API.php @@ -129,7 +129,8 @@ class Piwik_ImageGraph_API $backgroundColor = Piwik_ImageGraph_API::DEFAULT_BACKGROUND_COLOR, $gridColor = Piwik_ImageGraph_API::DEFAULT_GRID_COLOR, $idSubtable = false, - $legendAppendMetric = true + $legendAppendMetric = true, + $segment = false ) { Piwik::checkUserHasViewAccess($idSite); @@ -168,7 +169,7 @@ class Piwik_ImageGraph_API $reportHasDimension = !empty($metadata['dimension']); $constantRowsCount = !empty($metadata['constantRowsCount']); - $isMultiplePeriod = Piwik_Archive::isMultiplePeriod($date, $period); + $isMultiplePeriod = Piwik_Period::isMultiplePeriod($date, $period); if (!$reportHasDimension && !$isMultiplePeriod) { throw new Exception('The graph cannot be drawn for this combination of \'date\' and \'period\' parameters.'); } @@ -296,7 +297,7 @@ class Piwik_ImageGraph_API $apiModule, $apiAction, $labels, - $segment = false, + $segment, $plottedMetric, $languageLoaded, $idGoal, @@ -352,7 +353,7 @@ class Piwik_ImageGraph_API $date, $apiModule, $apiAction, - $segment = false, + $segment, $apiParameters = false, $idGoal, $languageLoaded, |