diff options
author | Reuben Pereira <reuben453@gmail.com> | 2018-07-03 01:09:39 +0530 |
---|---|---|
committer | Reuben Pereira <reuben453@gmail.com> | 2018-07-03 01:09:39 +0530 |
commit | 07ac9ee2f0861135e6cd514e956e6eb7019e7096 (patch) | |
tree | c4cfd2b88e453e2ebe785c86877ffc63ca41b282 /lib/banzai | |
parent | 513d6a8457748295ad65cadbf946f125d81f2a4a (diff) | |
download | gitlab-ce-07ac9ee2f0861135e6cd514e956e6eb7019e7096.tar.gz |
Correct the misleading name of a variable in ProjectReferenceFilter.project_link_filter
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/filter/project_reference_filter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/banzai/filter/project_reference_filter.rb b/lib/banzai/filter/project_reference_filter.rb index 4a162733438..8bc4ceb92cd 100644 --- a/lib/banzai/filter/project_reference_filter.rb +++ b/lib/banzai/filter/project_reference_filter.rb @@ -53,9 +53,9 @@ module Banzai # Returns a String with `project>` references replaced with links. All links # have `gfm` and `gfm-project` class names attached for styling. def project_link_filter(text, link_content: nil) - self.class.references_in(text) do |match, project_name| - cached_call(:banzai_url_for_object, match, path: [Project, project_name.downcase]) do - if project = projects_hash[project_name.downcase] + self.class.references_in(text) do |match, project_path| + cached_call(:banzai_url_for_object, match, path: [Project, project_path.downcase]) do + if project = projects_hash[project_path.downcase] link_to_project(project, link_content: link_content) || match else match |