Commit e37bc72bfcb06bc9fe6b3ee4cd70f057a39da6d0
1 parent
f08ab7d7
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
community_dashboard: fix view_page
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
@@ -127,9 +127,9 @@ class ContentViewerController < ApplicationController | @@ -127,9 +127,9 @@ class ContentViewerController < ApplicationController | ||
127 | 127 | ||
128 | if params[:slideshow] | 128 | if params[:slideshow] |
129 | render :action => 'slideshow', :layout => 'slideshow' | 129 | render :action => 'slideshow', :layout => 'slideshow' |
130 | - else | ||
131 | - render :file => @page.view_page, :layout => true | 130 | + return |
132 | end | 131 | end |
132 | + render @page.view_page, :formats => [:html] | ||
133 | end | 133 | end |
134 | 134 | ||
135 | def versions_diff | 135 | def versions_diff |