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:
Josh Sherman 2009-06-13 21:16:36 +00:00
parent 14e68f8052
commit a157d4962b

View file

@ -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'];