diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-23 00:18:53 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-23 00:18:53 +0300 |
commit | 2aed127e94ae5525c944f8455db469774e713195 (patch) | |
tree | d2bf790896c9e1913d46eb0251df0fbff3f7dc5d /plugins/SitesManager/SitesManager.php | |
parent | c415afea3c19651a6e082f4e9482b9c4f7cb2b2e (diff) |
#7365 Do not show the "welcome" screen if log purging is enabled
Diffstat (limited to 'plugins/SitesManager/SitesManager.php')
-rw-r--r-- | plugins/SitesManager/SitesManager.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php index 93e1d8c2e8..1bf1bae03d 100644 --- a/plugins/SitesManager/SitesManager.php +++ b/plugins/SitesManager/SitesManager.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\SitesManager; use Piwik\Common; use Piwik\Archive\ArchiveInvalidator; +use Piwik\Plugins\PrivacyManager\PrivacyManager; use Piwik\Tracker\Cache; use Piwik\Tracker\Model as TrackerModel; @@ -48,6 +49,12 @@ class SitesManager extends \Piwik\Plugin return; } + // Skip the screen if purging logs is enabled + $settings = PrivacyManager::getPurgeDataSettings(); + if ($settings['delete_logs_enable'] == 1) { + return; + } + $trackerModel = new TrackerModel(); if ($trackerModel->isSiteEmpty($siteId)) { $module = 'SitesManager'; |