Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Settings replaced by Gitlab.config

  • Loading branch information...
commit 5e6f45b07f0c5b35f3c5ae0b9a49e14b79460d8d 1 parent 242f6aa
@Andrew8xx8 Andrew8xx8 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/helpers/issues_helper.rb
View
6 app/helpers/issues_helper.rb
@@ -48,7 +48,7 @@ def url_for_project_issues
if @project.used_default_issues_tracker?
project_issues_filter_path(@project)
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)
.gsub(':issues_tracker_id', @project.issues_tracker_id.to_s)
end
@@ -60,7 +60,7 @@ def url_for_new_issue
if @project.used_default_issues_tracker?
url = new_project_issue_path project_id: @project
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)
.gsub(':issues_tracker_id', @project.issues_tracker_id.to_s)
end
@@ -72,7 +72,7 @@ def url_for_issue(issue_id)
if @project.used_default_issues_tracker?
url = project_issue_url project_id: @project, id: issue_id
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)
.gsub(':project_id', @project.id.to_s)
.gsub(':issues_tracker_id', @project.issues_tracker_id.to_s)
Please sign in to comment.
Something went wrong with that request. Please try again.