diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-05 07:38:43 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-05 07:38:43 +0400 |
commit | 1507a3a511b4c5f91fcaec5bbabc849747aa9f6b (patch) | |
tree | 559228f5ae1cb27e6d7b35337af88ed64725dee6 /plugins | |
parent | b8beec0969d3f1013c486f12237d6b80b41a8f10 (diff) |
Debug the very last test failure! so close to being green
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Live/API.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Live/API.php b/plugins/Live/API.php index 1a3913b1ea..ebc8481d74 100644 --- a/plugins/Live/API.php +++ b/plugins/Live/API.php @@ -541,7 +541,7 @@ class API extends \Piwik\Plugin\API /** @var DataTable $table */ $actionsLimit = (int)Config::getInstance()->General['visitor_log_maximum_actions_per_visit']; - $website = new Site($idSite); + $website = new Site($idSite); $timezone = $website->getTimezone(); $currencies = APISitesManager::getInstance()->getCurrencySymbols(); @@ -551,6 +551,9 @@ class API extends \Piwik\Plugin\API $visitor = new Visitor($visitorDetailsArray); $visitorDetailsArray = $visitor->getAllVisitorDetails(); + if(!is_object($website)) { + var_dump($website); + } $visitorDetailsArray['siteCurrency'] = $website->getCurrency(); $visitorDetailsArray['siteCurrencySymbol'] = @$currencies[$visitorDetailsArray['siteCurrency']]; $visitorDetailsArray['serverTimestamp'] = $visitorDetailsArray['lastActionTimestamp']; |