Removing ClassRegistry access in RssHelper.

This commit is contained in:
mark_story 2010-07-14 23:35:12 -04:00
parent ab0f21f939
commit 07a7e18dc7

View file

@ -129,10 +129,8 @@ class RssHelper extends XmlHelper {
* @return string An RSS `<channel />`
*/
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'] = '/';