diff options
| author | hukl <contact@smyck.org> | 2009-10-17 14:14:15 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-17 14:14:15 +0200 |
| commit | 9606f0afce34789fca37a21925b2284fcbc0ccf7 (patch) | |
| tree | a2f627acfd9e33170e3710dc10547fd57e1eeb32 /app/controllers | |
| parent | c36132551b62e7d249948712d6dc47be614c28a5 (diff) | |
small clean up in the content controller
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 |
