diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-11-25 03:54:59 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-11-25 03:54:59 +0300 |
commit | 14e557bfb9cd2d117443d0da414a099c477b60a1 (patch) | |
tree | 650a413d6ada8ccdbadd7d8a9eb7bbb3083eaad6 /core | |
parent | a8917239df8ef46312c5295f8a92070f87125f86 (diff) |
refs #6697 start refactoring the DoNotTrack code to allow for adding tests
Diffstat (limited to 'core')
-rw-r--r-- | core/Piwik.php | 1 | ||||
-rw-r--r-- | core/Updates/2.0.3-b7.php | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/Piwik.php b/core/Piwik.php index 625a7cf9f8..80ed01cd8c 100644 --- a/core/Piwik.php +++ b/core/Piwik.php @@ -468,6 +468,7 @@ class Piwik * in case another Login plugin is being used. * * @return string + * @api */ public static function getLoginPluginName() { diff --git a/core/Updates/2.0.3-b7.php b/core/Updates/2.0.3-b7.php index add119e462..9903d999c1 100644 --- a/core/Updates/2.0.3-b7.php +++ b/core/Updates/2.0.3-b7.php @@ -23,9 +23,11 @@ class Updates_2_0_3_b7 extends Updates $errors = array(); try { + $checker = new DoNotTrackHeaderChecker(); + // enable DoNotTrack check in PrivacyManager if DoNotTrack plugin was enabled if (\Piwik\Plugin\Manager::getInstance()->isPluginActivated('DoNotTrack')) { - DoNotTrackHeaderChecker::activate(); + $checker->activate(); } // enable IP anonymization if AnonymizeIP plugin was enabled |