Skip to content

Commit

Permalink
Fix jsProxyTest, ie. make tracker work refs #4493
Browse files Browse the repository at this point in the history
Why include file manually? because piwik.php does not use autoloader yet.
Maybe as part of refs #4074 we could setup autoloader for piwik.php / tracking API.
  • Loading branch information
mattab committed Jan 12, 2014
1 parent 1d40bdc commit a665821
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/PrivacyManager/PrivacyManager.php
Expand Up @@ -30,15 +30,15 @@
use Piwik\Site;
use Piwik\Tracker\GoalManager;

/**
* @see plugins/PrivacyManager/LogDataPurger.php
*/

require_once PIWIK_INCLUDE_PATH . '/plugins/PrivacyManager/LogDataPurger.php';
require_once PIWIK_INCLUDE_PATH . '/plugins/PrivacyManager/ReportsPurger.php';

/**
* @see plugins/PrivacyManager/ReportsPurger.php
* Specifically include this for Tracker API (which does not use autoloader)
*/
require_once PIWIK_INCLUDE_PATH . '/plugins/PrivacyManager/ReportsPurger.php';
require_once PIWIK_INCLUDE_PATH . '/plugins/PrivacyManager/DoNotTrackHeaderChecker.php';
require_once PIWIK_INCLUDE_PATH . '/plugins/PrivacyManager/IPAnonymizer.php';

/**
* @package PrivacyManager
Expand Down Expand Up @@ -147,9 +147,9 @@ public function getListHooksRegistered()
'AssetManager.getJavaScriptFiles' => 'getJsFiles',
'Menu.Admin.addItems' => 'addMenu',
'TaskScheduler.getScheduledTasks' => 'getScheduledTasks',
'Tracker.isExcludedVisit' => array($this->dntChecker, 'checkHeaderInTracker'),
'Tracker.setTrackerCacheGeneral' => array($this->dntChecker, 'setTrackerCacheGeneral'),
'Tracker.setVisitorIp' => array($this->ipAnonymizer, 'setVisitorIpAddress')
'Tracker.isExcludedVisit' => array($this->dntChecker, 'checkHeaderInTracker'),
'Tracker.setVisitorIp' => array($this->ipAnonymizer, 'setVisitorIpAddress'),
);
}

Expand Down

0 comments on commit a665821

Please sign in to comment.