aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMarc Florisson2014-10-31 14:21:51 +0100
committerMarc Florisson2014-10-31 14:21:51 +0100
commit5a44dcc0ee3fb8a65964b7ee39cfc67c5376f681 (patch)
treed8b424b7e28990d6d01b843fb6d4a631b1091d3a /app/controllers
parent7a6399861d75c2ff9d6d2467bfba89ed037ed105 (diff)
downloadchouette-core-5a44dcc0ee3fb8a65964b7ee39cfc67c5376f681.tar.bz2
allow help access for every body. Mantis 29774
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/help_controller.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index 91e8088de..7d4c3409d 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -1,4 +1,11 @@
-class HelpController < ApplicationController
+class HelpController < ActionController::Base
+ layout "application"
+ protect_from_forgery
+ before_filter :set_locale
+
+ def set_locale
+ I18n.locale = session[:language] || I18n.default_locale
+ end
def show
@page = HelpPage.find(slug)