Skip to content

Commit

Permalink
[mod] populate whole item to template, not only some special indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
haschek committed Jun 1, 2011
1 parent f549a0e commit 9873873
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions lib/Services/FeedMetaService.php
Expand Up @@ -25,20 +25,7 @@ public function __construct( $config ){
* @return array
*/
public function populateItemTemplate( &$item ) {
$dataForOutput = array();

if (isset($item['link'])) $dataForOutput['link'] = $item['link'];
if (isset($item['title'])) $dataForOutput['title'] = $item['title'];
if (isset($item['date'])) $dataForOutput['date'] = $item['date'];
if (isset($item['absolute_date'])) $dataForOutput['absolute_date'] = $item['absolute_date'];
if (isset($item['timestamp'])) $dataForOutput['timestamp'] = $item['timestamp'];
if (isset($item['author'])) $dataForOutput['author'] = $item['author'];
if (isset($item['summary'])) $dataForOutput['summary'] = $item['summary'];
if (isset($item['content'])) $dataForOutput['content'] = $item['content'];
if (isset($item['comments_link'])) $dataForOutput['comments_link'] = $item['comments_link'];
if (isset($item['comments_count'])) $dataForOutput['comments_count'] = $item['comments_count'];

return $dataForOutput;
return $item;
}

/**
Expand Down

0 comments on commit 9873873

Please sign in to comment.