diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/content_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index fde2570..db0e5e2 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb | |||
| @@ -14,10 +14,8 @@ class ContentController < ApplicationController | |||
| 14 | expires_in 10.minutes, :public => true | 14 | expires_in 10.minutes, :public => true |
| 15 | 15 | ||
| 16 | if @page and @page.public? | 16 | if @page and @page.public? |
| 17 | template = @page.valid_template | ||
| 18 | |||
| 19 | render( | 17 | render( |
| 20 | :file => template, | 18 | :file => @page.valid_template, |
| 21 | :layout => true | 19 | :layout => true |
| 22 | ) | 20 | ) |
| 23 | else | 21 | else |
