Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index f002a0c454d..2ee20887129 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -136,15 +136,15 @@ module SearchHelper
# - group
# - group: nil, project: nil
if project
- html_escape(_("We couldn't find any %{scope} matching %{term} in project %{project}")) % options.merge(
+ ERB::Util.html_escape(_("We couldn't find any %{scope} matching %{term} in project %{project}")) % options.merge(
project: link_to(project.full_name, project_path(project), target: '_blank', rel: 'noopener noreferrer').html_safe
)
elsif group
- html_escape(_("We couldn't find any %{scope} matching %{term} in group %{group}")) % options.merge(
+ ERB::Util.html_escape(_("We couldn't find any %{scope} matching %{term} in group %{group}")) % options.merge(
group: link_to(group.full_name, group_path(group), target: '_blank', rel: 'noopener noreferrer').html_safe
)
else
- html_escape(_("We couldn't find any %{scope} matching %{term}")) % options
+ ERB::Util.html_escape(_("We couldn't find any %{scope} matching %{term}")) % options
end
end