Permalink
Browse files

Refs #2830 More fixes forgot in previous commit

  • Loading branch information...
1 parent d152c93 commit 1cd66a2c5065460f1c6d2d77e4778f97efb171fd @mattab mattab committed with halfdan Feb 17, 2013
Showing with 5 additions and 3 deletions.
  1. +3 −1 core/Tracker/Cache.php
  2. +2 −2 tests/LocalTracker.php
View
@@ -18,9 +18,11 @@
class Piwik_Tracker_Cache
{
/**
+ * Public for tests only
* @var Piwik_CacheFile
*/
- static $trackerCache = null;
+ static public $trackerCache = null;
+
static protected function getInstance()
{
if(is_null(self::$trackerCache)) {
View
@@ -46,7 +46,7 @@ protected function sendRequest( $url, $method = 'GET', $data = null, $force = fa
}
// unset cached values
- Piwik_Common::$trackerCache = null;
+ Piwik_Tracker_Cache::$trackerCache = null;
Piwik_Tracker::setForceIp(null);
Piwik_Tracker::setForceDateTime(null);
Piwik_Tracker::setForceVisitorId(null);
@@ -60,7 +60,7 @@ protected function sendRequest( $url, $method = 'GET', $data = null, $force = fa
// modify config
$GLOBALS['PIWIK_TRACKER_MODE'] = true;
$GLOBALS['PIWIK_TRACKER_LOCAL_TRACKING'] = true;
- Piwik_Common::$initTrackerMode = false;
+ Piwik_Tracker::$initTrackerMode = false;
Piwik_Tracker::setTestEnvironment($testEnvironmentArgs, $method);
// set language

0 comments on commit 1cd66a2

Please sign in to comment.