diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-18 05:05:49 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-18 05:05:49 +0400 |
commit | 884e22d596b4b5be15fc6e33bb2403f021bfeb58 (patch) | |
tree | 9ad43b6828765571366f27a8e65114db643fa311 /core/DataTable | |
parent | ba372fe35080bc758c43a0ffdf83cb5d5dec16ce (diff) |
Refactor const to highlight their coupling #4278
Diffstat (limited to 'core/DataTable')
-rw-r--r-- | core/DataTable/Renderer/Rss.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/DataTable/Renderer/Rss.php b/core/DataTable/Renderer/Rss.php index dee117a90f..d9eadf9afd 100644 --- a/core/DataTable/Renderer/Rss.php +++ b/core/DataTable/Renderer/Rss.php @@ -11,6 +11,7 @@ namespace Piwik\DataTable\Renderer; use Exception; +use Piwik\Archive; use Piwik\Common; use Piwik\DataTable\Renderer; use Piwik\DataTable; @@ -75,8 +76,8 @@ class Rss extends Renderer $moreRecentFirst = array_reverse($table->getDataTables(), true); foreach ($moreRecentFirst as $date => $subtable) { /** @var DataTable $subtable */ - $timestamp = $subtable->getMetadata('period')->getDateStart()->getTimestamp(); - $site = $subtable->getMetadata('site'); + $timestamp = $subtable->getMetadata(Archive\DataTableFactory::TABLE_METADATA_PERIOD_INDEX)->getDateStart()->getTimestamp(); + $site = $subtable->getMetadata(Archive\DataTableFactory::TABLE_METADATA_SITE_INDEX); $pudDate = date('r', $timestamp); |