Added overrides to the RSS class.
git-svn-id: http://svn.cleancode.org/svn/pickles@134 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
14e68f8052
commit
a157d4962b
1 changed files with 5 additions and 2 deletions
|
@ -46,9 +46,12 @@ class Display_RSS extends Display_Common {
|
|||
* @todo Error handling is non-existant.
|
||||
*/
|
||||
public function render() {
|
||||
if (isset($this->data->channel)) {
|
||||
if (isset($this->data->channel) || is_object($this->data['channel'])) {
|
||||
$channel = $this->data['channel'];
|
||||
$channel = $this->config->rss->$channel;
|
||||
|
||||
if (!is_object($this->data['channel'])) {
|
||||
$channel = $this->config->rss->$channel;
|
||||
}
|
||||
|
||||
if (isset($this->data->items)) {
|
||||
$items = $this->data['items'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue