Commit 132a097aa69068e0e98754c39a52746d61b2f597

Authored by Antonio Terceiro
1 parent ab9757df

Make it possible to add extra RSS feeds on blogs

(ActionItem1770, ActionItem894)
Showing 1 changed file with 1 additions and 6 deletions   Show diff stats
app/controllers/my_profile/cms_controller.rb
@@ -46,11 +46,6 @@ class CmsController < MyProfileController @@ -46,11 +46,6 @@ class CmsController < MyProfileController
46 ] 46 ]
47 articles += special_article_types if params && params[:cms] 47 articles += special_article_types if params && params[:cms]
48 parent_id = params ? params[:parent_id] : nil 48 parent_id = params ? params[:parent_id] : nil
49 - if !parent_id or !Article.find(parent_id).has_posts?  
50 - articles += [  
51 - RssFeed  
52 - ]  
53 - end  
54 if profile.enterprise? 49 if profile.enterprise?
55 articles << EnterpriseHomepage 50 articles << EnterpriseHomepage
56 end 51 end
@@ -58,7 +53,7 @@ class CmsController &lt; MyProfileController @@ -58,7 +53,7 @@ class CmsController &lt; MyProfileController
58 end 53 end
59 54
60 def special_article_types 55 def special_article_types
61 - [Folder, Blog, UploadedFile, Forum, Gallery] 56 + [Folder, Blog, UploadedFile, Forum, Gallery, RssFeed]
62 end 57 end
63 58
64 def view 59 def view