diff options
Diffstat (limited to 'app/controllers/news_controller.rb')
-rw-r--r-- | app/controllers/news_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 492ca09a6..0d091396a 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -47,7 +47,10 @@ class NewsController < ApplicationController :limit => @limit) respond_to do |format| - format.html { render :layout => false if request.xhr? } + format.html { + @news = News.new # for adding news inline + render :layout => false if request.xhr? + } format.api format.atom { render_feed(@newss, :title => (@project ? @project.name : Setting.app_title) + ": #{l(:label_news_plural)}") } end |