Renamed variables to be more descriptive. #2542
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2430 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5b7a5c39a7
commit
b75a30a21a
|
@ -140,11 +140,11 @@ module Redmine
|
||||||
module Helper
|
module Helper
|
||||||
def call_hook(hook, context={})
|
def call_hook(hook, context={})
|
||||||
if is_a?(ActionController::Base)
|
if is_a?(ActionController::Base)
|
||||||
ctx = {:controller => self, :project => @project, :request => request}
|
default_context = {:controller => self, :project => @project, :request => request}
|
||||||
Redmine::Hook.call_hook(hook, ctx.merge(context))
|
Redmine::Hook.call_hook(hook, default_context.merge(context))
|
||||||
else
|
else
|
||||||
ctx = {:controller => controller, :project => @project, :request => request}
|
default_context = {:controller => controller, :project => @project, :request => request}
|
||||||
Redmine::Hook.call_hook(hook, ctx.merge(context)).join(' ')
|
Redmine::Hook.call_hook(hook, default_context.merge(context)).join(' ')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue