Commit 5e6f45b0 authored by Andrew8xx8's avatar Andrew8xx8

Settings replaced by Gitlab.config

parent 242f6aa2
...@@ -48,7 +48,7 @@ module IssuesHelper ...@@ -48,7 +48,7 @@ module IssuesHelper
if @project.used_default_issues_tracker? if @project.used_default_issues_tracker?
project_issues_filter_path(@project) project_issues_filter_path(@project)
else else
url = Settings[:issues_tracker][@project.issues_tracker]["project_url"] url = Gitlab.config.issues_tracker[@project.issues_tracker]["project_url"]
url.gsub(':project_id', @project.id.to_s) url.gsub(':project_id', @project.id.to_s)
.gsub(':issues_tracker_id', @project.issues_tracker_id.to_s) .gsub(':issues_tracker_id', @project.issues_tracker_id.to_s)
end end
...@@ -60,7 +60,7 @@ module IssuesHelper ...@@ -60,7 +60,7 @@ module IssuesHelper
if @project.used_default_issues_tracker? if @project.used_default_issues_tracker?
url = new_project_issue_path project_id: @project url = new_project_issue_path project_id: @project
else else
url = Settings[:issues_tracker][@project.issues_tracker]["new_issue_url"] url = Gitlab.config.issues_tracker[@project.issues_tracker]["new_issue_url"]
url.gsub(':project_id', @project.id.to_s) url.gsub(':project_id', @project.id.to_s)
.gsub(':issues_tracker_id', @project.issues_tracker_id.to_s) .gsub(':issues_tracker_id', @project.issues_tracker_id.to_s)
end end
...@@ -72,7 +72,7 @@ module IssuesHelper ...@@ -72,7 +72,7 @@ module IssuesHelper
if @project.used_default_issues_tracker? if @project.used_default_issues_tracker?
url = project_issue_url project_id: @project, id: issue_id url = project_issue_url project_id: @project, id: issue_id
else else
url = Settings[:issues_tracker][@project.issues_tracker]["issues_url"] url = Gitlab.config.issues_tracker[@project.issues_tracker]["issues_url"]
url.gsub(':id', issue_id.to_s) url.gsub(':id', issue_id.to_s)
.gsub(':project_id', @project.id.to_s) .gsub(':project_id', @project.id.to_s)
.gsub(':issues_tracker_id', @project.issues_tracker_id.to_s) .gsub(':issues_tracker_id', @project.issues_tracker_id.to_s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment