diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-05 07:29:50 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-05 07:29:50 +0400 |
commit | b8beec0969d3f1013c486f12237d6b80b41a8f10 (patch) | |
tree | 081ebdbf867fd61fadf665f756af4183807e7838 /plugins | |
parent | a59374ea824622749d512c8a8228cdfe453734eb (diff) |
desperate try at a build failure on PHP 5.3
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Live/API.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Live/API.php b/plugins/Live/API.php index 4469eb6cec..1a3913b1ea 100644 --- a/plugins/Live/API.php +++ b/plugins/Live/API.php @@ -541,8 +541,8 @@ class API extends \Piwik\Plugin\API /** @var DataTable $table */ $actionsLimit = (int)Config::getInstance()->General['visitor_log_maximum_actions_per_visit']; - $site = new Site($idSite); - $timezone = $site->getTimezone(); + $website = new Site($idSite); + $timezone = $website->getTimezone(); $currencies = APISitesManager::getInstance()->getCurrencySymbols(); foreach ($table->getRows() as $visitorDetailRow) { @@ -551,8 +551,8 @@ class API extends \Piwik\Plugin\API $visitor = new Visitor($visitorDetailsArray); $visitorDetailsArray = $visitor->getAllVisitorDetails(); - $visitorDetailsArray['siteCurrency'] = $site->getCurrency(); - $visitorDetailsArray['siteCurrencySymbol'] = @$currencies[$site->getCurrency()]; + $visitorDetailsArray['siteCurrency'] = $website->getCurrency(); + $visitorDetailsArray['siteCurrencySymbol'] = @$currencies[$visitorDetailsArray['siteCurrency']]; $visitorDetailsArray['serverTimestamp'] = $visitorDetailsArray['lastActionTimestamp']; $dateTimeVisit = Date::factory($visitorDetailsArray['lastActionTimestamp'], $timezone); $visitorDetailsArray['serverTimePretty'] = $dateTimeVisit->getLocalized('%time%'); |