Fixing View class reference in RssHelper

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4109 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-12-19 19:27:19 +00:00
parent 982381dc74
commit 8606816642

View file

@ -124,7 +124,7 @@ class RssHelper extends XmlHelper {
* @return string An RSS <channel />
*/
function channel($attrib = array(), $elements = array(), $content = null) {
$view =& ClassRegistry::getObject('_view_');
$view =& ClassRegistry::getObject('view');
if (!isset($elements['title']) && !empty($view->pageTitle)) {
$elements['title'] = $view->pageTitle;