From: Jean-Philippe Lang Date: Sun, 26 Feb 2012 19:20:37 +0000 (+0000) Subject: Use controller_name and action_name instead of params. X-Git-Tag: 1.4.0~296 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0d2a22f37a7e4ef1ca1ad5b9bb8758129c04ad18;p=redmine.git Use controller_name and action_name instead of params. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9018 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 313b0f933..f04d59e6d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -476,8 +476,8 @@ module ApplicationHelper css << 'theme-' + theme.name end - css << 'controller-' + params[:controller] - css << 'action-' + params[:action] + css << 'controller-' + controller_name + css << 'action-' + action_name css.join(' ') end