mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
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:
parent
982381dc74
commit
8606816642
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class RssHelper extends XmlHelper {
|
||||||
* @return string An RSS <channel />
|
* @return string An RSS <channel />
|
||||||
*/
|
*/
|
||||||
function channel($attrib = array(), $elements = array(), $content = null) {
|
function channel($attrib = array(), $elements = array(), $content = null) {
|
||||||
$view =& ClassRegistry::getObject('_view_');
|
$view =& ClassRegistry::getObject('view');
|
||||||
|
|
||||||
if (!isset($elements['title']) && !empty($view->pageTitle)) {
|
if (!isset($elements['title']) && !empty($view->pageTitle)) {
|
||||||
$elements['title'] = $view->pageTitle;
|
$elements['title'] = $view->pageTitle;
|
||||||
|
|
Loading…
Add table
Reference in a new issue