From 4e1a2670dac05955fa498ad250de095c184b4830 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sat, 14 Apr 2012 19:22:52 +0530 Subject: [PATCH] Updating outdated layout file in skeleton --- app/View/Layouts/rss/default.ctp | 2 +- .../Console/Templates/skel/View/Layouts/rss/default.ctp | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/View/Layouts/rss/default.ctp b/app/View/Layouts/rss/default.ctp index d57624e1a..2b8e9d434 100644 --- a/app/View/Layouts/rss/default.ctp +++ b/app/View/Layouts/rss/default.ctp @@ -11,4 +11,4 @@ echo $this->Rss->document( array(), $channel, $content_for_layout ) ); -?> +?> \ No newline at end of file diff --git a/lib/Cake/Console/Templates/skel/View/Layouts/rss/default.ctp b/lib/Cake/Console/Templates/skel/View/Layouts/rss/default.ctp index 94067f2bf..2b8e9d434 100644 --- a/lib/Cake/Console/Templates/skel/View/Layouts/rss/default.ctp +++ b/lib/Cake/Console/Templates/skel/View/Layouts/rss/default.ctp @@ -1,6 +1,4 @@ header(); - if (!isset($channel)) { $channel = array(); } @@ -8,10 +6,9 @@ if (!isset($channel['title'])) { $channel['title'] = $title_for_layout; } -echo $rss->document( - $rss->channel( +echo $this->Rss->document( + $this->Rss->channel( array(), $channel, $content_for_layout ) ); - ?> \ No newline at end of file