diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-20 05:53:12 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-20 05:53:12 +0400 |
commit | 8afc92b956e0bbbafef4aa55dbc92bcad4db5687 (patch) | |
tree | 15a86a6e7daa6f445e39bb01a4282e87ef0606cf /plugins/Goals/Reports | |
parent | 76ba5f84480d3216237bb2c0992b6c5fb059f350 (diff) |
removed no longer needed code in goals controller
Diffstat (limited to 'plugins/Goals/Reports')
-rw-r--r-- | plugins/Goals/Reports/Get.php | 4 | ||||
-rw-r--r-- | plugins/Goals/Reports/GetDaysToConversion.php | 4 | ||||
-rw-r--r-- | plugins/Goals/Reports/GetVisitsUntilConversion.php | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Goals/Reports/Get.php b/plugins/Goals/Reports/Get.php index faafe408d0..092e6a8beb 100644 --- a/plugins/Goals/Reports/Get.php +++ b/plugins/Goals/Reports/Get.php @@ -26,6 +26,10 @@ class Get extends BaseGoal public function configureReportMetadata(&$availableReports, $infos) { + if (!$this->isEnabled()) { + return; + } + parent::configureReportMetadata($availableReports, $infos); $this->addReportMetadataForEachGoal($availableReports, $infos, function ($goal) { diff --git a/plugins/Goals/Reports/GetDaysToConversion.php b/plugins/Goals/Reports/GetDaysToConversion.php index b401abf557..de99a04b60 100644 --- a/plugins/Goals/Reports/GetDaysToConversion.php +++ b/plugins/Goals/Reports/GetDaysToConversion.php @@ -49,6 +49,10 @@ class GetDaysToConversion extends BaseGoal public function configureReportMetadata(&$availableReports, $infos) { + if (!$this->isEnabled()) { + return; + } + if (null !== $this->getIdSiteFromInfos($infos)) { parent::configureReportMetadata($availableReports, $infos); } diff --git a/plugins/Goals/Reports/GetVisitsUntilConversion.php b/plugins/Goals/Reports/GetVisitsUntilConversion.php index db92ddb6c5..6be172a866 100644 --- a/plugins/Goals/Reports/GetVisitsUntilConversion.php +++ b/plugins/Goals/Reports/GetVisitsUntilConversion.php @@ -48,6 +48,10 @@ class GetVisitsUntilConversion extends BaseGoal public function configureReportMetadata(&$availableReports, $infos) { + if (!$this->isEnabled()) { + return; + } + if (null !== $this->getIdSiteFromInfos($infos)) { parent::configureReportMetadata($availableReports, $infos); } |