diff --git a/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb b/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb index 157b96b..9f49580 100644 --- a/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb +++ b/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb @@ -38,7 +38,7 @@ class RequireAuthToCommentPlugin < Noosfero::Plugin end def body_beginning - "" if allowed_by_profile + tag :meta, name: 'profile.allow_unauthenticated_comments' if allowed_by_profile end protected diff --git a/plugins/responsive/views/layouts/application-responsive.html.erb b/plugins/responsive/views/layouts/application-responsive.html.erb index ad96fd6..758bd01 100644 --- a/plugins/responsive/views/layouts/application-responsive.html.erb +++ b/plugins/responsive/views/layouts/application-responsive.html.erb @@ -36,7 +36,7 @@ <%= @plugins.dispatch(:body_beginning).map do |content| if content.respond_to?(:call) then instance_exec(&content).to_s.html_safe else content.to_s.html_safe end - end.join("\n") + end.safe_join %>