From 07a7e18dc7a2bb0b14e86fa6bda3b7cc0c6c530a Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 14 Jul 2010 23:35:12 -0400 Subject: [PATCH] Removing ClassRegistry access in RssHelper. --- cake/libs/view/helpers/rss.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cake/libs/view/helpers/rss.php b/cake/libs/view/helpers/rss.php index 31effa21a..a9a8f76b5 100644 --- a/cake/libs/view/helpers/rss.php +++ b/cake/libs/view/helpers/rss.php @@ -129,10 +129,8 @@ class RssHelper extends XmlHelper { * @return string An RSS `` */ public function channel($attrib = array(), $elements = array(), $content = null) { - $view =& ClassRegistry::getObject('view'); - - if (!isset($elements['title']) && !empty($view->pageTitle)) { - $elements['title'] = $view->pageTitle; + if (!isset($elements['title']) && !empty($this->_View->pageTitle)) { + $elements['title'] = $this->_View->pageTitle; } if (!isset($elements['link'])) { $elements['link'] = '/';