Skip to content
Permalink
Browse files

Removing ClassRegistry access in RssHelper.

  • Loading branch information...
markstory committed Jul 15, 2010
1 parent ab0f21f commit 07a7e18dc7a2bb0b14e86fa6bda3b7cc0c6c530a
Showing with 2 additions and 4 deletions.
  1. +2 −4 cake/libs/view/helpers/rss.php
@@ -129,10 +129,8 @@ public function document($attrib = array(), $content = null) {
* @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'] = '/';

0 comments on commit 07a7e18

Please sign in to comment.
You can’t perform that action at this time.