Changeset b01deb


Ignore:
Timestamp:
11/16/13 23:28:20 (5 years ago)
Author:
pierre-alain <pierre-alain@…>
Branches:
master
Children:
07671a
Parents:
faa4e3
git-author:
pierre-alain <pierre-alain@…> (11/16/13 23:27:20)
git-committer:
pierre-alain <pierre-alain@…> (11/16/13 23:28:20)
Message:

support multiple author/pubdate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OWR/Stream/Item.php

    r2a43de rb01deb  
    142142                if(isset($this->_item['author']['name']) && isset($this->_item['author']['name']['contents'])) 
    143143                { 
    144                     $author .= $this->_item['author']['name']['contents']; 
     144                    $author .= is_array($this->_item['author']['name']['contents']) ? join(', ', $this->_item['author']['name']['contents']) : $this->_item['author']['name']['contents']; 
    145145                } 
    146146 
     
    165165        else 
    166166        { // rss 
    167             $this->_item['pubDate']['contents'] = !empty($this->_item['pubDate']['contents']) ? strtotime((string) $this->_item['pubDate']['contents']) : time(); 
     167            $this->_item['pubDate']['contents'] = !empty($this->_item['pubDate']['contents']) ? strtotime((string) is_array($this->_item['pubDate']['contents']) ? current($this->_item['pubDate']['contents']) : $this->_item['pubDate']['contents']) : time(); 
    168168            $this->_item['url']['contents'] = html_entity_decode((string)$this->_item['link']['contents'], ENT_COMPAT, 'UTF-8'); 
    169169        } 
Note: See TracChangeset for help on using the changeset viewer.