diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-06-16 08:41:54 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-06-16 08:41:54 +0300 |
commit | 0111e95d5c9002319aae6ca2be756e3495a7eb49 (patch) | |
tree | 12a685f8cfd4690550cd5c136f7ff49a876a30a9 /plugins/PrivacyManager | |
parent | 0a29e23d70c149958b343fcbd0c26a580ff882d6 (diff) |
use DI to get instance
Diffstat (limited to 'plugins/PrivacyManager')
-rw-r--r-- | plugins/PrivacyManager/Controller.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/PrivacyManager/Controller.php b/plugins/PrivacyManager/Controller.php index d662a8459a..7773fe0a97 100644 --- a/plugins/PrivacyManager/Controller.php +++ b/plugins/PrivacyManager/Controller.php @@ -18,8 +18,6 @@ use Piwik\Nonce; use Piwik\Notification; use Piwik\Option; use Piwik\Piwik; -use Piwik\Plugins\DBStats\MySQLMetadataDataAccess; -use Piwik\Plugins\DBStats\MySQLMetadataProvider; use Piwik\Plugins\LanguagesManager\LanguagesManager; use Piwik\Scheduler\Scheduler; use Piwik\View; @@ -192,7 +190,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $doDatabaseSizeEstimate = PiwikConfig::getInstance()->Deletelogs['enable_auto_database_size_estimate']; // determine the DB size & purged DB size - $metadataProvider = new MySQLMetadataProvider(new MySQLMetadataDataAccess()); + $metadataProvider = StaticContainer::get('Piwik\Plugins\DBStats\MySQLMetadataProvider'); $tableStatuses = $metadataProvider->getAllTablesStatus(); $totalBytes = 0; |