From 07ac9ee2f0861135e6cd514e956e6eb7019e7096 Mon Sep 17 00:00:00 2001
From: Reuben Pereira <reuben453@gmail.com>
Date: Tue, 3 Jul 2018 01:09:39 +0530
Subject: [PATCH] Correct the misleading name of a variable in
 ProjectReferenceFilter.project_link_filter

---
 lib/banzai/filter/project_reference_filter.rb | 6 +++---
 1 file 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
-- 
2.30.9