replaced deprecated controller instance variables: @params, @session, @request
git-svn-id: http://redmine.rubyforge.org/svn/trunk@127 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -23,11 +23,11 @@ class HelpController < ApplicationController
|
||||
# displays help page for the requested controller/action
|
||||
def index
|
||||
# select help page to display
|
||||
if @params[:ctrl] and @help_config['pages'][@params[:ctrl]]
|
||||
if @params[:page] and @help_config['pages'][@params[:ctrl]][@params[:page]]
|
||||
template = @help_config['pages'][@params[:ctrl]][@params[:page]]
|
||||
if params[:ctrl] and @help_config['pages'][params[:ctrl]]
|
||||
if params[:page] and @help_config['pages'][params[:ctrl]][params[:page]]
|
||||
template = @help_config['pages'][params[:ctrl]][params[:page]]
|
||||
else
|
||||
template = @help_config['pages'][@params[:ctrl]]['index']
|
||||
template = @help_config['pages'][params[:ctrl]]['index']
|
||||
end
|
||||
end
|
||||
# choose language according to available help translations
|
||||
|
||||
Reference in New Issue
Block a user