mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Removing ClassRegistry access in RssHelper.
This commit is contained in:
parent
ab0f21f939
commit
07a7e18dc7
1 changed files with 2 additions and 4 deletions
|
@ -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'] = '/';
|
||||
|
|
Loading…
Add table
Reference in a new issue