summaryrefslogtreecommitdiffstats
path: root/lib/redmine/hook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/hook.rb')
-rw-r--r--lib/redmine/hook.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb
index dba36a91a..f0a95f020 100644
--- a/lib/redmine/hook.rb
+++ b/lib/redmine/hook.rb
@@ -17,7 +17,7 @@
module Redmine
module Hook
- include ActionController::UrlWriter
+ #include ActionController::UrlWriter
@@listener_classes = []
@@listeners = nil
@@ -88,12 +88,12 @@ module Redmine
include ActionView::Helpers::FormTagHelper
include ActionView::Helpers::FormOptionsHelper
include ActionView::Helpers::JavaScriptHelper
- include ActionView::Helpers::PrototypeHelper
+ #include ActionView::Helpers::PrototypeHelper
include ActionView::Helpers::NumberHelper
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::AssetTagHelper
include ActionView::Helpers::TextHelper
- include ActionController::UrlWriter
+ include Rails.application.routes.url_helpers
include ApplicationHelper
# Default to creating links using only the path. Subclasses can
@@ -113,6 +113,14 @@ module Redmine
context[:controller].send(:render_to_string, {:locals => context}.merge(options))
end
end
+
+ def controller
+ nil
+ end
+
+ def config
+ ActionController::Base.config
+ end
end
# Helper module included in ApplicationHelper and ActionController so that
@@ -143,7 +151,7 @@ module Redmine
default_context = { :project => @project }
default_context[:controller] = controller if respond_to?(:controller)
default_context[:request] = request if respond_to?(:request)
- Redmine::Hook.call_hook(hook, default_context.merge(context)).join(' ')
+ Redmine::Hook.call_hook(hook, default_context.merge(context)).join(' ').html_safe
end
end
end